KERNBASE

Hong MingJian superhaar at 263.sina.com
Sat Feb 7 07:21:40 PST 2004


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 + 0x00100000 + SIZEOF_HEADERS
.......


So, I think the macro R should be defined as
      #define R(foo)  ((foo)-KERNBASE-SIZEOF_HEADERS)


why not?

Thanks.



More information about the freebsd-hackers mailing list