Subject: Re: A fix for the panic on reboot problem in NetBSD 3.1 (tested in SE/30)
To: Chuck Silvers <chuq@chuq.com>
From: Sungwon Chung <lucky.cimon@gmail.com>
List: port-mac68k
Date: 01/08/2007 15:58:16
On 1/8/07, Chuck Silvers <chuq@chuq.com> wrote:
> On Tue, Jan 02, 2007 at 07:05:46AM -0500, Sungwon Chung wrote:
> > (2) I think we can probably align the 'start' at a page boundary by
> > modifying '/usr/src/sys/arch/mac68k/mac68k/locore.s'.
> > I just wished to minimize the modification.
>
> the real problem was that the memory location that was used for the "pmove"
> instruction was in the (read-only) text section.  it was the previous
> instruction that stored zero into that location that was causing the trap.
> the reason that your change made the problem go away was that the text
> location that was mistakenly being used was in the page after "start",
> ie. the page that your change made writable.
>
> the fix is in -current now, and should be in the 4.x and 3.x branches soon.

hi,

Now I can understand what was the real problem.
I could see that you correctly initialized a3 register with the
read/write permitted
memory address before "start" rather than unintentionally used address
"Lebootcode".

Thank you very much for clear explanation !
Sungwon