]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Don't export grub_gate_a20.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 13 Sep 2010 23:08:24 +0000 (01:08 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 13 Sep 2010 23:08:24 +0000 (01:08 +0200)
* grub-core/kern/i386/pc/init.c: Remove leftovers.
* grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
to ...
(grub_gate_a20): ... this. All users updated.
* include/grub/i386/pc/init.h: Removed. All users updated.

ChangeLog
grub-core/kern/i386/pc/init.c
grub-core/kern/i386/pc/mmap.c
grub-core/kern/i386/pc/startup.S
grub-core/loader/i386/pc/chainloader.c
grub-core/loader/i386/pc/linux.c
include/grub/i386/pc/init.h [deleted file]

index c3d7a6f0db6100db7b980d977b5ee3a05df745a9..e622b6da5e7cf3b67f7839ca8a802c8cf4f39911 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Don't export grub_gate_a20.
+
+       * grub-core/kern/i386/pc/init.c: Remove leftovers.
+       * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
+       to ...
+       (grub_gate_a20): ... this. All users updated.
+       * include/grub/i386/pc/init.h: Removed. All users updated.
+
 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Create euro.pf2 which supports most European languages.
index 57e33569e640ce3887eba540ab9cf7e4d827db30..fc247a0d0ecfe9b4ba149c49b3d4310c3261cb09 100644 (file)
@@ -19,7 +19,7 @@
 #include <grub/kernel.h>
 #include <grub/mm.h>
 #include <grub/machine/boot.h>
-#include <grub/machine/init.h>
+#include <grub/i386/floppy.h>
 #include <grub/machine/memory.h>
 #include <grub/machine/console.h>
 #include <grub/machine/kernel.h>
@@ -171,11 +171,6 @@ grub_machine_init (void)
   if (grub_lower_mem < GRUB_MEMORY_MACHINE_RESERVED_END)
     grub_fatal ("too small memory");
 
-#if 0
-  /* Turn on Gate A20 to access >1MB.  */
-  grub_gate_a20 (1);
-#endif
-
 /* FIXME: This prevents loader/i386/linux.c from using low memory.  When our
    heap implements support for requesting a chunk in low memory, this should
    no longer be a problem.  */
index b174bc441c53eb9114734861ad12754bc625573c..dba69bbcbb1c0c85b06708d56401cb2ac9992259 100644 (file)
@@ -16,9 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <grub/machine/init.h>
-#include <grub/machine/int.h>
 #include <grub/machine/memory.h>
+#include <grub/machine/int.h>
 #include <grub/err.h>
 #include <grub/types.h>
 #include <grub/misc.h>
index 9b53deeb2cabd1d446aa7699c8ea4d41a5566b04..2a78bc76f304b5ab6622151df349ede48228a60a 100644 (file)
@@ -202,7 +202,7 @@ LOCAL (codestart):
        .code32
 
        incl    %eax
-       call    EXT_C(grub_gate_a20)
+       call    grub_gate_a20
 
 #ifdef ENABLE_LZMA
        movl    $GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR, %edi
@@ -292,7 +292,7 @@ VARIABLE(grub_boot_drive)
  * It also eats any keystrokes in the keyboard buffer.  :-(
  */
 
-FUNCTION(grub_gate_a20)
+grub_gate_a20: 
        movl    %eax, %edx
 
 gate_a20_test_current_state:
@@ -478,7 +478,7 @@ FUNCTION(grub_chainloader_real_boot)
 
        /* Turn off Gate A20 */
        xorl    %eax, %eax
-       call    EXT_C(grub_gate_a20)
+       call    grub_gate_a20
 
        /* set up to pass boot drive */
        popl    %edx
index e76f84f082daaad0c7a1fd568712de3111f82922..0ae94eaf8ab4989b8050d9648f47427544177bdb 100644 (file)
 #include <grub/disk.h>
 #include <grub/misc.h>
 #include <grub/types.h>
-#include <grub/machine/init.h>
 #include <grub/partition.h>
 #include <grub/machine/memory.h>
 #include <grub/dl.h>
 #include <grub/command.h>
 #include <grub/msdos_partition.h>
 #include <grub/machine/biosnum.h>
+#include <grub/cpu/floppy.h>
 #include <grub/i18n.h>
 #include <grub/video.h>
 #include <grub/mm.h>
index 2f5dfec706bc384c170e0c8f7045037e00ad853f..8e9a1b6302a389e44abe6301827bcb0573a0aa79 100644 (file)
@@ -25,7 +25,6 @@
 #include <grub/disk.h>
 #include <grub/misc.h>
 #include <grub/types.h>
-#include <grub/machine/init.h>
 #include <grub/machine/memory.h>
 #include <grub/dl.h>
 #include <grub/cpu/linux.h>
diff --git a/include/grub/i386/pc/init.h b/include/grub/i386/pc/init.h
deleted file mode 100644 (file)
index 4005a17..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2002,2004,2005,2007,2008  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
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  GRUB is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef GRUB_INIT_MACHINE_HEADER
-#define GRUB_INIT_MACHINE_HEADER       1
-
-#include <grub/types.h>
-#include <grub/symbol.h>
-#include <grub/machine/memory.h>
-#include <grub/cpu/floppy.h>
-
-/* Turn on/off Gate A20.  */
-void grub_gate_a20 (int on);
-
-#endif /* ! GRUB_INIT_MACHINE_HEADER */