mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
remove data32
This commit is contained in:
1 parent
2cbee7340c
commit
a7831929d3
8 files changed
+9
-16
No files matched your search
@@ -272,14 +272,11 @@ rm -f conftest*])
|
|||||||
|
|
||||||
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
|
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
|
||||||
grub_tmp_addr32="addr32"
|
grub_tmp_addr32="addr32"
|
||||||
grub_tmp_data32="data32"
|
|
||||||
else
|
else
|
||||||
grub_tmp_addr32="addr32;"
|
grub_tmp_addr32="addr32;"
|
||||||
grub_tmp_data32="data32;"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ADDR32=$grub_tmp_addr32
|
ADDR32=$grub_tmp_addr32
|
||||||
DATA32=$grub_tmp_data32
|
|
||||||
|
|
||||||
AC_MSG_RESULT([$grub_cv_i386_asm_prefix_requirement])])
|
AC_MSG_RESULT([$grub_cv_i386_asm_prefix_requirement])])
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,6 @@
|
|||||||
#define HAVE_ASM_USCORE @HAVE_ASM_USCORE@
|
#define HAVE_ASM_USCORE @HAVE_ASM_USCORE@
|
||||||
/* Define it to \"addr32\" or \"addr32;\" to make GAS happy. */
|
/* Define it to \"addr32\" or \"addr32;\" to make GAS happy. */
|
||||||
#define ADDR32 @ADDR32@
|
#define ADDR32 @ADDR32@
|
||||||
/* Define it to \"data32\" or \"data32;\" to make GAS happy. */
|
|
||||||
#define DATA32 @DATA32@
|
|
||||||
/* Define it to one of __bss_start, edata and _edata. */
|
/* Define it to one of __bss_start, edata and _edata. */
|
||||||
#define BSS_START_SYMBOL @BSS_START_SYMBOL@
|
#define BSS_START_SYMBOL @BSS_START_SYMBOL@
|
||||||
/* Define it to either end or _end. */
|
/* Define it to either end or _end. */
|
||||||
|
|||||||
@@ -1569,7 +1569,6 @@ AS_IF([test x$target_cpu = xi386 -a x$platform = xqemu],
|
|||||||
|
|
||||||
AC_SUBST(HAVE_ASM_USCORE)
|
AC_SUBST(HAVE_ASM_USCORE)
|
||||||
AC_SUBST(ADDR32)
|
AC_SUBST(ADDR32)
|
||||||
AC_SUBST(DATA32)
|
|
||||||
AC_SUBST(BSS_START_SYMBOL)
|
AC_SUBST(BSS_START_SYMBOL)
|
||||||
AC_SUBST(END_SYMBOL)
|
AC_SUBST(END_SYMBOL)
|
||||||
AC_SUBST(PACKAGE)
|
AC_SUBST(PACKAGE)
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ LOCAL (codestart):
|
|||||||
int $0x13
|
int $0x13
|
||||||
|
|
||||||
/* transition to protected mode */
|
/* transition to protected mode */
|
||||||
DATA32 call real_to_prot
|
calll real_to_prot
|
||||||
|
|
||||||
/* The ".code32" directive takes GAS out of 16-bit mode. */
|
/* The ".code32" directive takes GAS out of 16-bit mode. */
|
||||||
.code32
|
.code32
|
||||||
@@ -149,7 +149,7 @@ gate_a20_try_bios:
|
|||||||
movw $0x2401, %ax
|
movw $0x2401, %ax
|
||||||
int $0x15
|
int $0x15
|
||||||
|
|
||||||
DATA32 call real_to_prot
|
calll real_to_prot
|
||||||
.code32
|
.code32
|
||||||
|
|
||||||
popl %ebp
|
popl %ebp
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ VARIABLE(grub_core_entry_addr)
|
|||||||
/* Transition to protected mode. We use pushl to force generation
|
/* Transition to protected mode. We use pushl to force generation
|
||||||
of a flat return address. */
|
of a flat return address. */
|
||||||
pushl $1f
|
pushl $1f
|
||||||
DATA32 jmp real_to_prot
|
jmpl real_to_prot
|
||||||
.code32
|
.code32
|
||||||
/* Ensure A20 is enabled. We're in qemu, so control port A works
|
/* Ensure A20 is enabled. We're in qemu, so control port A works
|
||||||
and there is no need to wait since there is no real logic, it's
|
and there is no need to wait since there is no real logic, it's
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ LOCAL(prot_to_real_addr):
|
|||||||
|
|
||||||
.macro REAL_TO_PROT
|
.macro REAL_TO_PROT
|
||||||
movl LOCAL(real_to_prot_addr), %eax
|
movl LOCAL(real_to_prot_addr), %eax
|
||||||
DATA32 call *%ax
|
calll *%eax
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ protstack:
|
|||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro REAL_TO_PROT
|
.macro REAL_TO_PROT
|
||||||
DATA32 call real_to_prot
|
calll real_to_prot
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -137,7 +137,7 @@ real_to_prot:
|
|||||||
/* load the GDT register */
|
/* load the GDT register */
|
||||||
xorw %ax, %ax
|
xorw %ax, %ax
|
||||||
movw %ax, %ds
|
movw %ax, %ds
|
||||||
DATA32 ADDR32 lgdt gdtdesc
|
ADDR32 lgdtl gdtdesc
|
||||||
|
|
||||||
/* turn on protected mode */
|
/* turn on protected mode */
|
||||||
movl %cr0, %eax
|
movl %cr0, %eax
|
||||||
@@ -145,7 +145,7 @@ real_to_prot:
|
|||||||
movl %eax, %cr0
|
movl %eax, %cr0
|
||||||
|
|
||||||
/* jump to relocation, flush prefetch queue, and reload %cs */
|
/* jump to relocation, flush prefetch queue, and reload %cs */
|
||||||
DATA32 ljmp $GRUB_MEMORY_MACHINE_PROT_MODE_CSEG, $protcseg
|
ljmpl $GRUB_MEMORY_MACHINE_PROT_MODE_CSEG, $protcseg
|
||||||
|
|
||||||
.code32
|
.code32
|
||||||
protcseg:
|
protcseg:
|
||||||
@@ -237,7 +237,7 @@ tmpcseg:
|
|||||||
movl %eax, %cr0
|
movl %eax, %cr0
|
||||||
|
|
||||||
/* flush prefetch queue, reload %cs */
|
/* flush prefetch queue, reload %cs */
|
||||||
DATA32 ljmp $0, $realcseg
|
ljmpl $0, $realcseg
|
||||||
|
|
||||||
realcseg:
|
realcseg:
|
||||||
/* we are in real mode now
|
/* we are in real mode now
|
||||||
@@ -258,6 +258,6 @@ realcseg:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* return on new stack! */
|
/* return on new stack! */
|
||||||
DATA32 ret
|
retl
|
||||||
|
|
||||||
.code32
|
.code32
|
||||||
@@ -10,7 +10,6 @@ grub_have_font_source=@HAVE_FONT_SOURCE@
|
|||||||
# Autodetected config
|
# Autodetected config
|
||||||
grub_have_asm_uscore=@HAVE_ASM_USCORE@
|
grub_have_asm_uscore=@HAVE_ASM_USCORE@
|
||||||
grub_i8086_addr32="@ADDR32@"
|
grub_i8086_addr32="@ADDR32@"
|
||||||
grub_i8086_data32="@DATA32@"
|
|
||||||
grub_bss_start_symbol="@BSS_START_SYMBOL@"
|
grub_bss_start_symbol="@BSS_START_SYMBOL@"
|
||||||
grub_end_symbol="@END_SYMBOL@"
|
grub_end_symbol="@END_SYMBOL@"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user