2009-03-22 Pavel Roskin <proski@gno.org>
+ * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
+ _start.
+ * kern/i386/pc/startup.S: Likewise.
+ * kern/i386/efi/startup.S: Likewise.
+ * kern/i386/ieee1275/startup.S: Likewise.
+ * kern/i386/coreboot/startup.S: Likewise.
+ * kern/x86_64/efi/startup.S: Likewise.
+
* aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
* configure.ac: Don't call grub_CHECK_START_SYMBOL.
* kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
* This is a special data area at a fixed offset from the beginning.
*/
- . = EXT_C(start) + GRUB_KERNEL_CPU_PREFIX
+ . = _start + GRUB_KERNEL_CPU_PREFIX
VARIABLE(grub_prefix)
/* to be filled by grub-mkimage */
* Leave some breathing room for the prefix.
*/
- . = EXT_C(start) + GRUB_KERNEL_CPU_DATA_END
+ . = _start + GRUB_KERNEL_CPU_DATA_END
/*
* Support for booting GRUB from a Multiboot boot loader (e.g. GRUB itself).
* These MUST be at byte offset 6 and 7 of the executable
* DO NOT MOVE !!!
*/
- . = EXT_C(start) + 0x6
+ . = _start + 0x6
.byte GRUB_BOOT_VERSION_MAJOR, GRUB_BOOT_VERSION_MINOR
/*
* This is a special data area 8 bytes from the beginning.
*/
- . = EXT_C(start) + 0x8
+ . = _start + 0x8
VARIABLE(grub_prefix)
/* to be filled by grub-mkimage */
* Leave some breathing room for the prefix.
*/
- . = EXT_C(start) + 0x50
+ . = _start + 0x50
codestart:
/*
* This is a special data area at a fixed offset from the beginning.
*/
- . = EXT_C(start) + GRUB_KERNEL_CPU_PREFIX
+ . = _start + GRUB_KERNEL_CPU_PREFIX
VARIABLE(grub_prefix)
/* to be filled by grub-mkimage */
* Leave some breathing room for the prefix.
*/
- . = EXT_C(start) + GRUB_KERNEL_CPU_DATA_END
+ . = _start + GRUB_KERNEL_CPU_DATA_END
codestart:
movl %eax, EXT_C(grub_ieee1275_entry_fn)
#include <multiboot.h>
#include <multiboot2.h>
-#define ABS(x) ((x) - EXT_C(start) + GRUB_BOOT_MACHINE_KERNEL_ADDR + 0x200)
+#define ABS(x) ((x) - _start + GRUB_BOOT_MACHINE_KERNEL_ADDR + 0x200)
.file "startup.S"
* These MUST be at byte offset 6 and 7 of the executable
* DO NOT MOVE !!!
*/
- . = EXT_C(start) + 0x6
+ . = _start + 0x6
.byte GRUB_BOOT_VERSION_MAJOR, GRUB_BOOT_VERSION_MINOR
/*
* This is a special data area 8 bytes from the beginning.
*/
- . = EXT_C(start) + 0x8
+ . = _start + 0x8
VARIABLE(grub_total_module_size)
.long 0
* Leave some breathing room for the prefix.
*/
- . = EXT_C(start) + GRUB_KERNEL_MACHINE_DATA_END
+ . = _start + GRUB_KERNEL_MACHINE_DATA_END
/*
* Support for booting GRUB from a Multiboot boot loader (e.g. GRUB itself).
* The code beyond this point is compressed. Assert that the uncompressed
* code fits GRUB_KERNEL_MACHINE_RAW_SIZE.
*/
- . = EXT_C(start) + GRUB_KERNEL_MACHINE_RAW_SIZE
+ . = _start + GRUB_KERNEL_MACHINE_RAW_SIZE
/*
* This call is special... it never returns... in fact it should simply
_start:
b codestart
- . = EXT_C(start) + GRUB_KERNEL_CPU_PREFIX
+ . = _start + GRUB_KERNEL_CPU_PREFIX
VARIABLE(grub_prefix)
/* to be filled by grub-mkelfimage */
* Leave some breathing room for the prefix.
*/
- . = EXT_C(start) + GRUB_KERNEL_CPU_DATA_END
+ . = _start + GRUB_KERNEL_CPU_DATA_END
codestart:
li 2, 0
* These MUST be at byte offset 6 and 7 of the executable
* DO NOT MOVE !!!
*/
- . = EXT_C(start) + 0x6
+ . = _start + 0x6
.byte GRUB_BOOT_VERSION_MAJOR, GRUB_BOOT_VERSION_MINOR
/*
* This is a special data area 8 bytes from the beginning.
*/
- . = EXT_C(start) + 0x8
+ . = _start + 0x8
VARIABLE(grub_prefix)
/* to be filled by grub-mkimage */
* Leave some breathing room for the prefix.
*/
- . = EXT_C(start) + 0x50
+ . = _start + 0x50
codestart:
movq %rcx, EXT_C(grub_efi_image_handle)(%rip)