Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2004 09:04:49 GMT
From:      Hong MingJian <superhaar@263.sina.com>
To:        freebsd-hackers@freebsd.org
Subject:   KERNBASE
Message-ID:  <200402050904.i1594njk001524@bsdbox>

next in thread | raw e-mail | index | archive | help
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)
	
	But in the /sys/conf/ldscript.i386, 
		. = kernbase + 0x00100000 + SIZEOF_HEADERS;
	
	And the kernel is loaded in the physical address 0x00100000,
	so I think the macro in the locore.s should be:
	   #define R(foo)	 ((foo)-KERNBASE-SIZEOF_HEADERS)

	Why not? 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402050904.i1594njk001524>