[haiku-bugs] Re: [Haiku] #4028: Hybrid GPT/MBR Initial Program Loader

  • From: "meianoite" <trac@xxxxxxxxxxxx>
  • Date: Mon, 06 Jun 2011 01:17:22 -0000

#4028: Hybrid GPT/MBR Initial Program Loader
   Reporter:  meianoite     |      Owner:  axeld
       Type:  enhancement   |     Status:  new
   Priority:  normal        |  Milestone:  R1
  Component:  File Systems  |    Version:  R1/pre-alpha1
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  1             |   Platform:  All

Comment (by meianoite):

 Replying to [comment:13 bonefish]:
 > The last parameter is a variable name too, declared as `long long`,
 containing the size of the array. It isn't needed when you create a
 header, since `sizeof(kBootCode)` works just fine in this case, but if one
 creates a source file and references it from other source files, one might
 find it handy.

 The compiled file generates a 512-byte long binary, of which we must take
 only 432 bytes. Is there a facility to clip the file size? I can't really
 modify the source to stop at 432 bytes as Anyboot needs the whole file as
 a MBR template.

 > Untested, so make sure you check the paths and grists.

 Will do. But that will take a little while. I'm developing remotely over
 SSH on a quite limited machine (a Sheevaplug-like device with only 128MB
 of RAM) and only checked out the source, not compiled it. Building cross-
 tools for x86 took a  whole three days. I'll have to find another machine
 I can code on.

Ticket URL: <http://dev.haiku-os.org/ticket/4028#comment:14>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: