[haiku-development] Re: KERNEL_LOAD_BASE & friends

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 03 Sep 2016 09:19:34 +0200

On 09/03/2016 07:48 AM, Jessica Hamilton wrote:

Can someone explain exactly what the KERNEL_LOAD_BASE is for? And why
it needs to be hard-coded, rather than say part of the kernel args
struct?

Given that the bootloader for EFI is position independent, and the
workarounds that are needed due to a lack of fine grained control over
paging, I'm wondering if some of these hard coded values that get
reused in the parts of the kernel could be contributing to the page
faults that I'm getting.

The kernel itself is not position independent. KERNEL_LOAD_BASE is its load address. Cf. src/system/ldscripts/*/kernel.ld.

CU, Ingo


Other related posts: