Skip to contentSkip to conversation

-__PAGE_OFFSET

DISCUSSION amey d inamdar 2 participants 2 messages Sep 20, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

Hello everybody,
While running through source of 2.4 kernel, in head.S, I found the
line
86 : movl $pg0-__PAGE_OFFSET,%edi

I am not getting, at this point there is no virtual address & $pg0
itself contains physical address of first page table, then why to subtract 3GB from the physical address?
Thanx in anticipation.

- Amey

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#1 lore raw
Quoted 8 lines · amey d inamdar

Hello everybody,
While running through source of 2.4 kernel, in head.S, I found the
line
86 : movl $pg0-__PAGE_OFFSET,%edi

I am not getting, at this point there is no virtual address & $pg0
itself contains physical address of first page table, then why to subtract 3GB from the physical address?

The linker doesn't know the page tables haven't been setup yet. Look at the addresses in System.map.

Quoted 1 line

Thanx in anticipation.

Welcome.

Eric
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/