]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[bios] Use an 8kB stack for x86_64
authorMichael Brown <mcb30@ipxe.org>
Thu, 18 Feb 2016 15:56:41 +0000 (15:56 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 18 Feb 2016 15:56:41 +0000 (15:56 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/core/stack.S

index 98f1cd9b95df43f5b32edabed27bae557d105fbe..995c397cad1e609f490eb51a1db16e41c2d8c270 100644 (file)
@@ -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: