summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2016-02-18 16:56:41 +0100
committerMichael Brown2016-02-18 16:56:41 +0100
commitf0ea1f4d77e77a0d163ee34491006edded111b03 (patch)
treef3abd6d4322c197757a95d12c603a7c3a1d69ce6
parent[librm] Use garbage-collectable section names (diff)
downloadipxe-f0ea1f4d77e77a0d163ee34491006edded111b03.tar.gz
ipxe-f0ea1f4d77e77a0d163ee34491006edded111b03.tar.xz
ipxe-f0ea1f4d77e77a0d163ee34491006edded111b03.zip
[bios] Use an 8kB stack for x86_64
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/arch/x86/core/stack.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/arch/x86/core/stack.S b/src/arch/x86/core/stack.S
index 98f1cd9b9..995c397ca 100644
--- a/src/arch/x86/core/stack.S
+++ b/src/arch/x86/core/stack.S
@@ -2,6 +2,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.arch i386
+#ifdef __x86_64__
+#define STACK_SIZE 8192
+#else
+#define STACK_SIZE 4096
+#endif
+
/****************************************************************************
* Internal stack
****************************************************************************
@@ -10,6 +16,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.align 8
.globl _stack
_stack:
- .space 4096
+ .space STACK_SIZE
.globl _estack
_estack: