Date: 07 Feb 2004 23:22:24 +0000 From: Hong MingJian <superhaar@263.sina.com> To: freebsd-hackers@freebsd.org Subject: KERNBASE Message-ID: <87r7x6zd8v.fsf@263.sina.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87r7x6zd8v.fsf>
