Talk:GDT Tutorial: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "=== Bit shifting error in second code sample === <code lang="C"> // Create the high 32 bit segment descriptor = limit & 0x000F0000; descriptor |= (flag << 8) &...") |
|||
Line 9: | Line 9: | ||
At the last line, the upper 8 bits will always be 0. What is the proper shifting? |
At the last line, the upper 8 bits will always be 0. What is the proper shifting? |
||
: Thanks. Fixed on the page. [[User:Jnc100|John]] 14:07, 13 June 2012 (CDT) |
Revision as of 19:07, 13 June 2012
Bit shifting error in second code sample
// Create the high 32 bit segment
descriptor = limit & 0x000F0000;
descriptor |= (flag << 8) & 0x00F0FF00;
descriptor |= (base >> 16) & 0xFF0000FF;
At the last line, the upper 8 bits will always be 0. What is the proper shifting?
- Thanks. Fixed on the page. John 14:07, 13 June 2012 (CDT)