diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-09-07 10:20:52 -0700 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-09-07 10:20:52 -0700 |
commit | 7f56d951fe4ad6749e68ac860ea05f572b6d04ed (patch) | |
tree | 3346bdedd8cbaa93eb6ca1b75332bc73648d0ae8 /src/arch | |
parent | 9779eecbee025d757df43b03a0dc27c5148245a5 (diff) |
Allow compiling ancestor at half of max address
Also makes code compatible with older versions of GCC.
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/salis-v1.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/arch/salis-v1.c b/src/arch/salis-v1.c index 0e8f202..9268d50 100644 --- a/src/arch/salis-v1.c +++ b/src/arch/salis-v1.c @@ -200,7 +200,15 @@ void arch_on_proc_kill(Core *core) { void arch_anc_init(Core *core, u64 size) { assert(core); - proc_fetch(core, 0)->mb0s = size; + Proc *panc = proc_fetch(core, 0); + +#if ANC_HALF == 1 + panc->mb0a = U64_HALF; + panc->ip = U64_HALF; + panc->sp = U64_HALF; +#endif + + panc->mb0s = size; } #endif |