kernel load address

2004-02-09 Thread Hong MingJian
Hi all, When reading locore.s, I have the following question. In the locore.s, there's a macro R defined as #define R(foo) ((foo)-KERNBASE) where KERNBASE equals to 0xC000. But in the sys/conf/ldscript.i386, it reads SECTIONS {

KERNBASE

2004-02-07 Thread Hong MingJian
Hello: I'm a newbie to the kernel and trying to understand parts of kernel by reading its source codes. I'm reading sys/i386/i386/locore.s. There is a macro definition in the file sys/i386/i386/locore.s: #define R(foo) ((foo)-KERNBASE)

KERNBASE

2004-02-07 Thread Hong MingJian
Hi, I'm a newbie to the kernel. I'm trying to understand the kernel by reading kernel source codes. In the sys/i386/i386/locore.s, there is a macro #define R(foo) ((foo)-KERNBASE) But in the sys/conf/ldscript.i386, .. SECTIONS { . = kernbase + 0x0010 + SIZEOF_HEADERS