[haiku-bugs] Re: [Haiku] #11067: Kernel loaded to virtual address that overlaps with loader

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 07 Aug 2014 12:40:02 -0000

#11067: Kernel loaded to virtual address that overlaps with loader
----------------------------------+----------------------------
   Reporter:  arvindsraj          |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  System/Boot Loader  |    Version:  R1/Development
 Resolution:                      |   Keywords:  gsoc2014
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  arm
----------------------------------+----------------------------

Comment (by pulkomandy):

 {{{
 HAIKU_BOARD_LOADER_ENTRY_RAW = 0x80800000 ;
 HAIKU_BOARD_LOADER_ENTRY_NBSD = 0x80800008 ;
 }}}

 These should be defined relative to HAIKU_BOARD_LOADER_BASE. This would
 allow a single common definition for all ARM targets.

 {{{
 {
         "RAM_stack", // stack
         kLoaderBaseAddress + 0x1200000,
         kLoaderBaseAddress + 0x1ffffff,
         ARM_MMU_L2_FLAG_C,
 },
 {
         "RAM_initrd", // stack
         kLoaderBaseAddress + 0x2000000,
         kLoaderBaseAddress + 0x2500000,
         ARM_MMU_L2_FLAG_C,
 },
 }}}

 And these should be defined against HAIKU_BOARD_LOADER_UIBASE and
 HAIKU_BOARD_LOADER_STACK_BASE as defined in the Jamfile. These can be
 added to the CXXFLAGS if that's not already done, so we can use it from
 C++ sources. Also, please fix the "// stack" comment for the initrd
 section, It does not contain the stack.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11067#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: