We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cdff1c commit 6fdab75Copy full SHA for 6fdab75
Sources/AsmSupport/aarch64/boot.S
@@ -61,9 +61,8 @@ from_el3:
61
eret
62
63
el1_entry:
64
- // set top of stack just before our code
65
- ldr x1, =_start
66
- mov sp, x1
+ ldr x0, =__stack_top
+ mov sp, x0
67
68
jump_to_main:
69
// jump to Swift code, should not return
linker.ld
@@ -11,7 +11,13 @@ SECTIONS {
11
. = ALIGN(8);
12
__bss_end = .;
13
}
14
- __kernel_end = .;
+ __kernel_end = ALIGN(16);
15
+ .stack (NOLOAD) : ALIGN(16) {
16
+ __stack_bottom = .;
17
+ . += 0x20000; /* 128 KiB */
18
+ __stack_top = .;
19
+ }
20
+ __kernel_image_end = .;
21
.nonalloc (NOLOAD) : {
22
*(.symtab)
23
*(.strtab)
0 commit comments