[parisc-linux] use of (*PAGE0->mem_pdc)()

Frank Rowand frank_rowand@hp.com
Mon, 15 Nov 1999 15:11:36 -0800


Ryan Bradetich wrote:

< stuff deleted >

> [Taken from arch/parisc/kernel/realmode_setup.c]
> 
>  /* This whole VM setup stuff may be removed ultimately.  It seems
>    * to me that once the TLB miss handlers are ready, we just switch
>    * to VM and let them handle TLB population -PB
>    */
> 
>   pret = (*PAGE0->mem_pdc)(
>   PDC_BLOCK_TLB,
>   PDC_BTLB_INSERT,


A comment that is totally unrelated to the question Ryan was asking...

I would recommend that we quit using the pointer to PDCE_PROC() that
is in page zero, because the newer machines have a PDC procedure,
PDC_RELOCATE(), that copies PDCE_PROC into real memory, where it
executes much faster.  The page zero pointer to PDCE_PROC() is not
updated by PDC_RELOCATE(), but instead a pointer to the in-memory
PDCE_PROC() is returned.

I recommend using a global variable to hold the pointer to PDCE_PROC(),
which would be the value from page zero initially, then updated to
the value returned by PDC_RELOCATE().

-Frank

X-From-Line: hppa-linux@thepuffingroup.com  Wed Mar 10 14:48:39 1999
Return-Path: <hppa-linux@thepuffingroup.com>
Received: from merlin.pcj.primenet.com (pcj@merlin.pcj.primenet.com [192.168.111.10])
	by merlin.pcj.primenet.com (8.8.7/8.8.7) with ESMTP id OAA03093
	for <pcj@merlin.pcj.primenet.com>; Wed, 10 Mar 1999 14:48:39 -0800
Resent-From: hppa-linux@thepuffingroup.com
Received: from pop.primenet.com
	by merlin.pcj.primenet.com (fetchmail-4.4.7 POP3)
	for <pcj/merlin.pcj.primenet.com> (single-drop); Wed, 10 Mar 1999 14:48:39 PST
Received: from smtp03.primenet.com (daemon@smtp03.primenet.com [206.165.6.133])
	by primenet.com (8.8.8/8.8.5) with ESMTP id NAA26340
	for <pcj@smtp-local.primenet.com>; Mon, 8 Mar 1999 13:21:04 -0700 (MST)
Received: (from daemon@localhost)
	by smtp03.primenet.com (8.8.8/8.8.8) id NAA26769
	for <pcj@primenet.com>; Mon, 8 Mar 1999 13:22:09 -0700 (MST)
Received: from SOD.RES.CMU.EDU(128.2.91.30)
 via SMTP by smtp03.primenet.com, id smtpd026727; Mon Mar  8 13:22:00 1999
Received: (from listserv@localhost)
	by sod.res.cmu.edu (8.8.7/8.8.7) id OAA10747;
	Mon, 8 Mar 1999 14:48:52 -0500
Resent-Date: Mon, 8 Mar 1999 14:48:52 -0500
X-Authentication-Warning: sod.res.cmu.edu: listserv set sender to hppa-linux-request@thepuffingroup.com using -f
Delivered-To: thepuffi-hppa-linux@thepuffingroup.com
Date: Mon, 8 Mar 1999 14:48:29 -0500 (EST)
From: Christopher Beard <cjbeard@istar.ca>
X-Sender: cjbeard@centauri.osfi-bsif.gc.ca
To: hppa-linux@thepuffingroup.com
Subject: Re: [hppa-linux] source for the boot loader?
In-Reply-To: <199903081934.NAA07421@dukat.upl.cs.wisc.edu>
Message-ID: <Pine.LNX.4.10.9903081444280.7437-100000@centauri.osfi-bsif.gc.ca>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Resent-Message-ID: <"P3PpB1.0.rd2.Zc2vs"@sod.res.cmu.edu>
Reply-To: hppa-linux@thepuffingroup.com
X-Mailing-List: <hppa-linux@thepuffingroup.com> archive/latest/147
X-Loop: hppa-linux@thepuffingroup.com
Precedence: list
Resent-Sender: hppa-linux-request@thepuffingroup.com
X-UIDL: e29f7b7b9aea3cfbaed79864f19fa9b6
Status: RO
Lines: 22
Xref: merlin.pcj.primenet.com palinux:118


> Maybe I just missed it, but is the source for the bootloader out 
> there anywhere? I'd like to start looking at the code....

It is our hope that all code in this project will be released under the
GPL, and will be made available within the project's CVS repository as
soon as possible. 

It is important in an open-source project that code be released early and
regularly. If you have code that you would like to add to the repository,
please get in touch with me to either have it added or to arrange for
write access.

As for the bootstrap code, we are waiting for Jason Eckardt to release it
and import it into CVS.

Chris

-------------------------------------------------------------------------
To unsubscribe: send e-mail to hppa-linux-request@thepuffingroup.com with
`unsubscribe' as the subject.