[haiku-commits] Change in haiku[master]: sparc: move kernel to a lower address

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 30 Dec 2020 21:51:35 +0000

From Adrien Destugues <pulkomandy@xxxxxxxxx>:

Adrien Destugues has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3573 ;)


Change subject: sparc: move kernel to a lower address
......................................................................

sparc: move kernel to a lower address

The openboot mmu code does not like addresses above 4GB, so load the
kernel to a lower address. It doesn't really matter anyway, because on
sparc the kernel normally lives in a separate address space and uses
special instructions to access userland memory.
---
M headers/private/kernel/arch/sparc/arch_kernel.h
M src/system/ldscripts/sparc/kernel.ld
2 files changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/73/3573/1

diff --git a/headers/private/kernel/arch/sparc/arch_kernel.h 
b/headers/private/kernel/arch/sparc/arch_kernel.h
index 5666fff..8adf4d4 100644
--- a/headers/private/kernel/arch/sparc/arch_kernel.h
+++ b/headers/private/kernel/arch/sparc/arch_kernel.h
@@ -9,7 +9,7 @@
 #include <arch/cpu.h>

 // memory layout
-#define KERNEL_LOAD_BASE_64_BIT 0xffffffff80000000ll
+#define KERNEL_LOAD_BASE_64_BIT 0x80000000ll

 // Base of the kernel address space.
 // KERNEL_BASE is the base of the kernel address space. This differs from the
diff --git a/src/system/ldscripts/sparc/kernel.ld 
b/src/system/ldscripts/sparc/kernel.ld
index 58809ff..cfe02a7 100644
--- a/src/system/ldscripts/sparc/kernel.ld
+++ b/src/system/ldscripts/sparc/kernel.ld
@@ -13,7 +13,7 @@

 SECTIONS
 {
-       . = 0xFFFFFFFF80000000 + SIZEOF_HEADERS;
+       . = 0x80000000 + SIZEOF_HEADERS;

        .interp : { *(.interp) } : text
        .hash : { *(.hash) }

--
To view, visit https://review.haiku-os.org/c/haiku/+/3573
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Iac6901f275667efef5e64d059daf4c96032a7baf
Gerrit-Change-Number: 3573
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: sparc: move kernel to a lower address - Gerrit