Hello,
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 }; +#else static ucell t[] = { DOCOL, 0, (ucell)(t+3), 0 }; +#endif static ucell *trampoline = t; #endif
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.
Regards, Andreas
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(-)