Browse Source

[bios] Use an 8kB stack for x86_64

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
f0ea1f4d77
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      src/arch/x86/core/stack.S

+ 7
- 1
src/arch/x86/core/stack.S View File

@@ -2,6 +2,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
2 2
 
3 3
 	.arch i386
4 4
 
5
+#ifdef __x86_64__
6
+#define STACK_SIZE 8192
7
+#else
8
+#define STACK_SIZE 4096
9
+#endif
10
+
5 11
 /****************************************************************************
6 12
  * Internal stack
7 13
  ****************************************************************************
@@ -10,6 +16,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
10 16
 	.align 8
11 17
 	.globl _stack
12 18
 _stack:
13
-	.space 4096
19
+	.space STACK_SIZE
14 20
 	.globl _estack
15 21
 _estack:

Loading…
Cancel
Save