[haiku-gsoc] Re: Reserving space for kernel before loader leads to fault when turning on MMU

  • From: Arvind S Raj <sraj.arvind@xxxxxxxxx>
  • To: haiku-gsoc <haiku-gsoc@xxxxxxxxxxxxx>
  • Date: Thu, 7 Aug 2014 17:49:01 +0530

On 6 August 2014 18:37, Arvind S Raj <sraj.arvind@xxxxxxxxx> wrote:
>
> Things have moved ahead till load_kernel now. Right now, there are two
> issues I've noticed.
>
> 1. load_kernel faults when allocating space for the kernel by invoking
> mmu_allocate. Seems like the values in few registers end up being
> incorrect when 0x80008000 is mapped by map_page. I just realized the
> issue could be because the registers get the wrong value when
> restoring context before returning from map_page. I'll probably
> investigate along those lines.
>

I fixed this in the new patch added to #11067. Applying patch added to
#11107 will continue boot till KDL, where it faults when printing the
backtrace.

Other related posts: