]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Remove leftover
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 2 Dec 2009 10:44:29 +0000 (11:44 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 2 Dec 2009 10:44:29 +0000 (11:44 +0100)
include/grub/dl.h
include/grub/i386/memory.h.moved [deleted file]
include/grub/i386/relocator.h.moved [deleted file]
include/grub/mips/qemu-mips/machine.h [deleted file]
kern/mips/startup.S
lib/i386/relocator.c.moved [deleted file]
lib/i386/relocator_backward.S.moved [deleted file]

index 5bfcb0cf71a33960f35eb32fd7da1df582197b41..9340b6ce47c901a823d2463027fff599fbc51cd9 100644 (file)
@@ -116,8 +116,6 @@ grub_err_t EXPORT_FUNC(grub_dl_register_symbol) (const char *name, void *addr,
 grub_err_t grub_arch_dl_check_header (void *ehdr);
 grub_err_t grub_arch_dl_relocate_symbols (grub_dl_t mod, void *ehdr);
 
-grub_err_t grub_arch_dl_check_header (void *ehdr);
-
 #if defined (_mips) && ! defined (GRUB_UTIL)
 #define GRUB_LINKER_HAVE_INIT 1
 void grub_arch_dl_init_linker (void);
diff --git a/include/grub/i386/memory.h.moved b/include/grub/i386/memory.h.moved
deleted file mode 100644 (file)
index a0f3192..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/* memory.h - describe the memory map */
-/*
- *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2002,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_MEMORY_CPU_HEADER
-#define GRUB_MEMORY_CPU_HEADER 1
-
-/* The flag for protected mode.  */
-#define GRUB_MEMORY_CPU_CR0_PE_ON              0x1
-#define GRUB_MEMORY_CPU_CR4_PAE_ON             0x00000040
-#define GRUB_MEMORY_CPU_CR0_PAGING_ON       0x80000000
-#define GRUB_MEMORY_CPU_AMD64_MSR           0xc0000080
-#define GRUB_MEMORY_CPU_AMD64_MSR_ON        0x00000100
-
-#endif /* ! GRUB_MEMORY_CPU_HEADER */
diff --git a/include/grub/i386/relocator.h.moved b/include/grub/i386/relocator.h.moved
deleted file mode 100644 (file)
index ef7fe23..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 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
- *  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_RELOCATOR_CPU_HEADER
-#define GRUB_RELOCATOR_CPU_HEADER      1
-
-#include <grub/types.h>
-#include <grub/err.h>
-
-struct grub_relocator32_state
-{
-  grub_uint32_t esp;
-  grub_uint32_t eax;
-  grub_uint32_t ebx;
-  grub_uint32_t ecx;
-  grub_uint32_t edx;
-  grub_uint32_t eip;
-};
-
-void *grub_relocator32_alloc (grub_size_t size);
-grub_err_t grub_relocator32_boot (void *relocator, grub_uint32_t dest,
-                                 struct grub_relocator32_state state);
-void *grub_relocator32_realloc (void *relocator, grub_size_t size);
-void grub_relocator32_free (void *relocator);
-
-#endif /* ! GRUB_RELOCATOR_CPU_HEADER */
diff --git a/include/grub/mips/qemu-mips/machine.h b/include/grub/mips/qemu-mips/machine.h
deleted file mode 100644 (file)
index 386cad7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2007  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_MACHINE_MACHINE_HEADER
-#define GRUB_MACHINE_MACHINE_HEADER    1
-
-#define GRUB_MACHINE_MIPS_QEMU_R4K     1
-
-#endif /* ! GRUB_MACHINE_MACHINE_HEADER */
index afab3642e4ba98f8c613c4328404283870403390..b27442102fd8c0088eae8b2f290e325809ce547f 100644 (file)
@@ -71,8 +71,6 @@ reloccont:
        li $t3, (GRUB_MOD_ALIGN-1)
        nor $t3, $t3, $0
        and $t1, $t1, $t3
-       /* Pass modules address as first argument.  */
-//     move $a0, $t1
        
        lw $t3, (GRUB_KERNEL_CPU_TOTAL_MODULE_SIZE - BASE_ADDR)($t9)
 
diff --git a/lib/i386/relocator.c.moved b/lib/i386/relocator.c.moved
deleted file mode 100644 (file)
index ae7caf2..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 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
- *  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/>.
- */
-
-#include <grub/mm.h>
-#include <grub/misc.h>
-
-#include <grub/types.h>
-#include <grub/types.h>
-#include <grub/err.h>
-
-#include <grub/i386/relocator.h>
-
-extern grub_uint8_t grub_relocator32_forward_start;
-extern grub_uint8_t grub_relocator32_forward_end;
-extern grub_uint8_t grub_relocator32_backward_start;
-extern grub_uint8_t grub_relocator32_backward_end;
-
-extern grub_uint32_t grub_relocator32_backward_dest;
-extern grub_uint32_t grub_relocator32_backward_size;
-extern grub_addr_t grub_relocator32_backward_src;
-
-extern grub_uint32_t grub_relocator32_forward_dest;
-extern grub_uint32_t grub_relocator32_forward_size;
-extern grub_addr_t grub_relocator32_forward_src;
-
-extern grub_uint32_t grub_relocator32_forward_eax;
-extern grub_uint32_t grub_relocator32_forward_ebx;
-extern grub_uint32_t grub_relocator32_forward_ecx;
-extern grub_uint32_t grub_relocator32_forward_edx;
-extern grub_uint32_t grub_relocator32_forward_eip;
-extern grub_uint32_t grub_relocator32_forward_esp;
-
-extern grub_uint32_t grub_relocator32_backward_eax;
-extern grub_uint32_t grub_relocator32_backward_ebx;
-extern grub_uint32_t grub_relocator32_backward_ecx;
-extern grub_uint32_t grub_relocator32_backward_edx;
-extern grub_uint32_t grub_relocator32_backward_eip;
-extern grub_uint32_t grub_relocator32_backward_esp;
-
-#define RELOCATOR_SIZEOF(x)    (&grub_relocator32_##x##_end - &grub_relocator32_##x##_start)
-#define RELOCATOR_ALIGN 16
-#define PREFIX(x) grub_relocator32_ ## x
-
-static void
-write_call_relocator_bw (void *ptr, void *src, grub_uint32_t dest,
-                        grub_size_t size, struct grub_relocator32_state state)
-{
-  grub_relocator32_backward_dest = dest;
-  grub_relocator32_backward_src = PTR_TO_UINT64 (src);
-  grub_relocator32_backward_size = size;
-
-  grub_relocator32_backward_eax = state.eax;
-  grub_relocator32_backward_ebx = state.ebx;
-  grub_relocator32_backward_ecx = state.ecx;
-  grub_relocator32_backward_edx = state.edx;
-  grub_relocator32_backward_eip = state.eip;
-  grub_relocator32_backward_esp = state.esp;
-
-  grub_memmove (ptr,
-               &grub_relocator32_backward_start,
-               RELOCATOR_SIZEOF (backward));
-  ((void (*) (void)) ptr) ();
-}
-
-static void
-write_call_relocator_fw (void *ptr, void *src, grub_uint32_t dest,
-                        grub_size_t size, struct grub_relocator32_state state)
-{
-
-  grub_relocator32_forward_dest = dest;
-  grub_relocator32_forward_src = PTR_TO_UINT64 (src);
-  grub_relocator32_forward_size = size;
-  
-  grub_relocator32_forward_eax = state.eax;
-  grub_relocator32_forward_ebx = state.ebx;
-  grub_relocator32_forward_ecx = state.ecx;
-  grub_relocator32_forward_edx = state.edx;
-  grub_relocator32_forward_eip = state.eip;
-  grub_relocator32_forward_esp = state.esp;
-  
-  grub_memmove (ptr,
-               &grub_relocator32_forward_start,
-               RELOCATOR_SIZEOF (forward));
-  ((void (*) (void)) ptr) ();
-}
-
-#include "../relocator.c"
diff --git a/lib/i386/relocator_backward.S.moved b/lib/i386/relocator_backward.S.moved
deleted file mode 100644 (file)
index 0691347..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#define BACKWARD
-#include "relocator_asm.S"