Skip to contentSkip to conversation

Hardcoded PAGE_OFFSET in head.S

DISCUSSION Jacob Gorm Hansen 2 participants 2 messages Apr 4, 2005 – Apr 5, 2005

lore
Share & tools
lore
#0 lore raw

hi,

in kernel/head.S, I see the following:

.section __xen_guest
.ascii
"GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=3.0,VIRT_BASE=0xC0000000"

                                          ^^^^^^^^^^^^^^^^^^^^

I wonder why setting VIRT_BASE here is necessary, as the ELF header should contain this information already?

thanks,
Jacob

#1 lore raw
Quoted 7 lines · Jacob Gorm Hansen

in kernel/head.S, I see the following:

.section __xen_guest
.ascii
"GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=3.0,VIRT_BASE=0xC0000000"

                                          ^^^^^^^^^^^^^^^^^^^^

I wonder why setting VIRT_BASE here is necessary, as the ELF header should contain this information already?

The load and entry address is c0100000, but we want to map memory from c0000000 to better match the layout of native Linux (where the kernel appears at phys address 1MB).

-- Keir