Re: About the MmMapIoSpace function 's source code

Tech-Archive recommends: Fix windows errors by optimizing your registry



It is because PAGE_PHYSICAL is also set. As documented when using that flag
you must shift by 8. This is to allow for processors, like the MIPS, that
have a 36 bit physical address space

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com


.



Relevant Pages

  • Re: [PATCH 1/2] fb: add support for foreign endianness
    ... This is done via FBINFO_FOREIGN_ENDIAN flag that will ... Depending on the host endianness this flag ... int left, right; ... if (!shift) { ...
    (Linux-Kernel)
  • Re: [PATCH 1/2] fb: add support for foreign endianness
    ... This is done via FBINFO_FOREIGN_ENDIAN flag that will ... Depending on the host endianness this flag ... int left, right; ... if (!shift) { ...
    (Linux-Kernel)
  • Re: color plane formula
    ... "The result of a shift operation is undefined if the second operand is ... A RCL will copy the Most Significant Bit to ... the Carry Flag, after copying the Carry Flag to the Least Significant Bit, ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Decreasing order of address within main
    ... flag is set, while an unsigned comparison would check the carry flag ... unsigned variants is a right shift. ... might be a single instruction. ...
    (comp.lang.c)
  • Re: Arithmetic shift right
    ... Command LSR (Logical Shift Right) shifts all the bits by one to the ... This instruction is called ... The most significant bit becomes the value of the Carry Flag. ...
    (alt.lang.asm)