[haiku-development] Re: Haiku on PowerPC - try 2. SUCCESS - PATCH attached REVISION3

  • From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 23 Jul 2009 04:43:28 +0200

-------- Original-Nachricht --------
> Datum: Wed, 22 Jul 2009 21:36:35 -0500
> Von: Alexander von Gluck <kallisti5@xxxxxxxxxxx>

> Index: src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp
> ===================================================================
> --- src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp    (revision
> 31707)
> +++ src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp    (working copy)
> @@ -970,7 +970,10 @@
>       // set up new page table and turn on translation again
> 
>       for (int32 i = 0; i < 16; i++) {
> +             asm volatile ("isync");
>               ppc_set_segment_register((void *)(i * 0x10000000), 
> sSegments[i]);
> +             asm volatile ("sync");
>                       // one segment describes 256 MB of memory
>       }

The comment was originally decorating ppc_set_segment_register() BTW.

CU, Ingo

Other related posts: