]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 22 Jun 2009 22:48:20 +0000 (22:48 +0000)
committerrobertmh <robertmh@localhost>
Mon, 22 Jun 2009 22:48:20 +0000 (22:48 +0000)
        * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
        segment 0x0 unconditionally, because the reference generated by
        GAS is an absolute address.

ChangeLog
kern/i386/realmode.S

index 375663f2ca9cc1cce4397742eccc9444df7a14fa..bdb177d758cb880b5ab8b1f2aaf122c983cb9a8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-23  Robert Millan  <rmh.grub@aybabtu.com>
+
+       * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
+       segment 0x0 unconditionally, because the reference generated by
+       GAS is an absolute address.
+
 2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>
 
        * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
index 075aa57e901ea05554e7364bf40139b0922518f2..11f4d534770b34d9e465da9e3567f51eb1afed86 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 1999,2000,2001,2002,2003,2005,2006,2007 Free Software Foundation, Inc.
+ *  Copyright (C) 1999,2000,2001,2002,2003,2005,2006,2007,2009 Free Software Foundation, Inc.
  *
  *  GRUB is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -121,13 +121,9 @@ real_to_prot:
        cli
 
        /* load the GDT register */
-#ifdef APPLE_CC
-       mov %cs, %ax
-       mov %ax, %ds
+       xorw    %ax, %ax
+       movw    %ax, %ds
        DATA32  ADDR32  lgdt    gdtdesc
-#else
-       DATA32  ADDR32  lgdt    %cs:gdtdesc
-#endif
 
        /* turn on protected mode */
        movl    %cr0, %eax