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

  • From: "arvindsraj" <trac@xxxxxxxxxxxx>
  • Date: Thu, 07 Aug 2014 19:45:01 -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 arvindsraj):

 There's a small issue in setting value of HAIKU_BOARD_LOADER_ENTRY_NBSD
 relative to HAIKU_BOARD_LOADER_BASE. Jam doesn't support arithmetic which
 makes assigning a value to LOADER_ENTRY_NBSD slightly tricky. I tried
 invoking Add from build/jam/MathRules as

 {{{
 HAIKU_BOARD_LOADER_ENTRY_NBSD = [ Add $(HAIKU_BOARD_LOADER_BASE) + 8 ]
 }}}

 but that doesn't work because a hex value is passed to Add, which is
 classified as NaN by the rule Num. I don't think the other rules(AddNumAbs
 and AddNum) are meant to be invoked directly. One solution is to add a
 rule that accepts hex values but that might be too much work right now.
 Another solution is to perhaps perform all computations in sh using printf
 and bc perhaps. The problem is that this variable is passed directly to
 mkimage and thus should be a hex string.

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

Other related posts: