[OpenBIOS] Fixing interpose

Blue Swirl blauwirbel at gmail.com
Tue Apr 24 22:03:51 CEST 2007


On 4/24/07, Stefan Reinauer <stepan at coresystems.de> wrote:
> Copying list again...
>
> * Blue Swirl <blauwirbel at gmail.com> [070424 20:49]:
> > Copyright (c) 1982, 1986, 1989, 1991, 1993
> >       The Regents of the University of California.  All rights reserved.
> > Copyright (c) 1995-2006 OpenBSD. All rights reserved.  http://www.OpenBSD.org
> >
> > OpenBSD 4.0 (RAMDISK) #297: Sun Sep 17 22:27:36 MDT 2006
> >     deraadt at sparc.openbsd.org:/usr/src/sys/arch/sparc/compile/RAMDISK
> > real mem = 133505024
> > avail mem = 117956608
> [..]
> > zs0 at obio0 addr 0x71100000 pri 12, softpri 6
> > zstty0 at zs0 channel 0 (console i/o)
> > zstty1 at zs0 channel 1
>
> Is openbsd hanging here?

Yes, nothing happens after that.

> NetBSD:
>
> > obp_fortheval_v2(384000 pgmap@ 387d8c L!)
>
> : pgmap@ ( virt -- pmentry )
>   \ Return the page map entry for the virtual address.
>   ;
>
> Not sure - can we just use an empty word here, as we use a 1:1 mapping?
>
>
> : pgmap! ( pmentry virt -- )
>   \ Store a new page map entry for the virtual address.
>   2drop
>   ;
>
> Those words are defined in
> http://openbios.org/viewvc/obp/cpu/sparc/ultra/mmu.fth?view=markup&revision=1&root=OpenBOOT
>
> My sparc know how is pretty limited though ;-)
>
>
> > pgmap@:obp_devclose(0xffd87f0c) = -19
> > Cannot load netbsd: error=27

Nice, assembler with Forth order. Looks like the returned value is a
page table entry, not an address. This needs a real implementation.



More information about the OpenBIOS mailing list