[OpenBIOS] [PATCH 0/4] Paving the way for ppc64

Andreas Färber andreas.faerber at web.de
Mon Nov 1 21:56:52 CET 2010


With these patches and a hack such as the following I am able to build
and debug into ppc64 OpenBIOS:

diff --git a/kernel/internal.c b/kernel/internal.c
index 91ab440..d1fd850 100644
--- a/kernel/internal.c
+++ b/kernel/internal.c
@@ -50,7 +50,11 @@ char xtname[MAXNFALEN];
 /* instead of pointing to an explicit 0 variable we
  * point behind the pointer.
+#ifdef __powerpc64__
+static ucell t[] = { DOCOL, 0, 0, 0 };
 static ucell t[] = { DOCOL, 0, (ucell)(t+3), 0 };
 static ucell *trampoline = t;

This hack does not matter yet as we don't return from setup_mmu() anyway.

I have some more fixes related to exception preamble and epilogue cooking
but that needs some more thought for a sane interim solution.


Andreas Färber (4):
  ppc: Use vector-local version of exception_return
  ppc64: Don't disable SF bit
  ppc: Introduce load() macro for ppc64
  ppc: Avoid vector overlap on ppc64

 arch/ppc/qemu/start.S |   76 +++++++++++++++++++++++++++++++------------------
 1 files changed, 48 insertions(+), 28 deletions(-)


More information about the OpenBIOS mailing list