[haiku-bugs] Re: [Haiku] #13528: Early bios call in bootloader cause reboot on skylake x86_64

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 24 May 2017 13:03:01 -0000

#13528: Early bios call in bootloader cause reboot on skylake x86_64
----------------------------------+----------------------------
   Reporter:  kallisti5           |      Owner:  nobody
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  System/Boot Loader  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by pulkomandy):

 IIRC we investigated a possibly similar issue with Ithamar on his MacBook
 during some BeGeistert coding sprint. This was quite a long time ago, but
 I remember we had traced it down to an usual way to handle segment:offset
 addressing while calling the BIOS (yay, segmented memory!)

 Basically, the BIOS expects to be called at 0800:0000, but we were calling
 it at 0000:8000, which results in the same physical address (because
 segments overlap) but may confuse some BIOS implementations.

 There is nothing 64-bit related at this early stage of boot. This code
 runs with the CPU in real mode, compatible with Intel's 286.

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

Other related posts: