Browse Source

[bios] Use an 8kB stack for x86_64

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 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
 
2
 
3
 	.arch i386
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
  * Internal stack
12
  * Internal stack
7
  ****************************************************************************
13
  ****************************************************************************
10
 	.align 8
16
 	.align 8
11
 	.globl _stack
17
 	.globl _stack
12
 _stack:
18
 _stack:
13
-	.space 4096
19
+	.space STACK_SIZE
14
 	.globl _estack
20
 	.globl _estack
15
 _estack:
21
 _estack:

Loading…
Cancel
Save