From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 7 07:21:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E058A16A4CE for ; Sat, 7 Feb 2004 07:21:39 -0800 (PST) Received: from 263.sina.com (unknown [202.106.182.141]) by mx1.FreeBSD.org (Postfix) with SMTP id 009CF43D1D for ; Sat, 7 Feb 2004 07:21:38 -0800 (PST) (envelope-from superhaar@263.sina.com) Received: (qmail 70445 invoked from network); 7 Feb 2004 14:26:20 -0000 Received: from unknown (HELO bsdbox) (219.153.14.48) by 202.106.182.141 with SMTP; 7 Feb 2004 14:26:20 -0000 Date: 07 Feb 2004 23:22:24 +0000 Message-Id: <87r7x6zd8v.fsf@263.sina.com> From: Hong MingJian To: freebsd-hackers@freebsd.org Subject: KERNBASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 15:21:40 -0000 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.