Date: Tue, 29 Apr 1997 22:07:36 +1000 From: Bruce Evans <bde@zeta.org.au> To: hackers@FreeBSD.org, msmith@atrad.adelaide.edu.au Subject: Re: mapping memory inside the kernel? Message-ID: <199704291207.WAA02311@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>From owner-freebsd-hackers@freefall.FreeBSD.ORG Tue Apr 29 16:56:47 1997 >Received: from x.physics.usyd.edu.au (x.physics.usyd.edu.au [129.78.129.25]) by godzilla.zeta.org.au (8.8.5/8.6.9) with ESMTP id QAA24075 for <bde@kralizec.zeta.org.au>; Tue, 29 Apr 1997 16:48:20 +1000 >Received: from hub.freebsd.org (hub.FreeBSD.ORG [204.216.27.18]) by x.physics.usyd.edu.au (8.8.5/8.8.2) with ESMTP id QAA11990; Tue, 29 Apr 1997 16:31:38 +1000 (EST) >Received: from localhost (daemon@localhost) > by hub.freebsd.org (8.8.5/8.8.5) with SMTP id XAA28319; > Mon, 28 Apr 1997 23:14:15 -0700 (PDT) >Received: (from root@localhost) > by hub.freebsd.org (8.8.5/8.8.5) id XAA28268 > for hackers-outgoing; Mon, 28 Apr 1997 23:13:23 -0700 (PDT) >Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) > by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA28263 > for <hackers@freebsd.org>; Mon, 28 Apr 1997 23:13:20 -0700 (PDT) >Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id PAA20132 for hackers@freebsd.org; Tue, 29 Apr 1997 15:43:17 +0930 (CST) >From: Michael Smith <msmith@atrad.adelaide.edu.au> >Message-Id: <199704290613.PAA20132@genesis.atrad.adelaide.edu.au> >Subject: mapping memory inside the kernel? >To: hackers@FreeBSD.org >Date: Tue, 29 Apr 1997 15:43:17 +0930 (CST) >X-Mailer: ELM [version 2.4ME+ PL28 (25)] >MIME-Version: 1.0 >Content-Type: text/plain; charset=US-ASCII >Content-Transfer-Encoding: 7bit >A question for those familiar with the workings of the kernel wrt. >load-time and mappings; > >If I want to load extra data after the kernel, and not have it clobbered >by the bss clearing in locore.s, how should this be done? Some way better than now :-). See the current handling of kernelname[] for how not to do it. (A 1K buffer is reserved at compile time. This usually wastes 1K - (strlen("kernel") + 1) bytes.) Fixing this would be a good warmup. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704291207.WAA02311>