[Bug 292494] powerpc64: booting qemu + mac99 results in crash (kernel DSI write trap) after openfirmware call once MMU/PMAP is setup

[email protected] Mon, 19 Jan 2026 00:55:14 +0000
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292494

--- Comment #8 from Adrian Chadd <[email protected]> ---
Created a branch in gitlab:

https://gitlab.com/erikarn/openbios/-/commits/20260118_fix_ppc_stack

and submitted a merge request:

https://gitlab.com/qemu-project/openbios/-/merge_requests/1

The diff itself to openbios is pretty small, but their build system did need
hacking to get it to find and use our gcc without complaining about errors and
such. i'll go send them another issue/PR for that.

diff --git a/arch/ppc/qemu/start.S b/arch/ppc/qemu/start.S
index c679230..4f4678f 100644
--- a/arch/ppc/qemu/start.S
+++ b/arch/ppc/qemu/start.S
@@ -503,7 +503,7 @@ _GLOBAL(saved_stack):
 #define SAVE_SPACE 320
 #else
 #define STKOFF 8
-#define SAVE_SPACE 144
+#define SAVE_SPACE 156
 #endif

 GLOBL(of_client_callback):

-- 
You are receiving this mail because:
You are the assignee for the bug.