Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Incorrect segment 0 initialization for PMAC G5
Hello,
On Fri, 29 Mar 2013 20:26:14 +0100
Phileas Fogg <phileas-fogg%mail.ru@localhost> wrote:
> 3. Currently i'm stuck in
> sys/arch/macppc/macppc/interrupts.c:init_interrupts because G5's U4 MPIC
> is not found.
An extra match line in macppc/interrupts.c:init_openpic() should do it (
assuming it is sufficiently OpenPIC-like ).
> Why does NetBSD require the interrupt controller to be initialized
> before configure process, why not use autoconf to autodetect interrupt
> controllers too.
Because devices that need to register interrupts may attach before the
interrupt controller does. Also, there may be more than one ( for
example, some old world PowerBooks have two cascaded ohare PICs, some
ofppc or prep boxes have OpenPIC or IVR and an i8259 ) which would
complicate things further if each one would attach on its own. It's
just simpler this way.
> 4. The function ofwoea_initppc maps the OFW code+data at 0xff800000 to
> 0x3fc00000. And that's not correct on my machine. On my G5 it's mapped
> to 0x7fc00000.
Yes, this needs to be fixed. I think the code assumes 1GB of RAM and
the address should be LOW_RAM_SIZE - 0x00400000.
have fun
Michael
Home |
Main Index |
Thread Index |
Old Index