-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage.ld
More file actions
21 lines (21 loc) · 865 Bytes
/
image.ld
File metadata and controls
21 lines (21 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SECTIONS {
/* assign load address (per QEMU) */
. = 0x70010000;
/* place text segment(s) */
.text : { kernel/lolevel.o(.text) *(.text .rodata) }
/* place data segment(s) */
.data : { *(.data ) }
/* place bss segment(s) */
.bss : { *(.bss ) }
/* align address (per AAPCS) */
. = ALIGN( 8 );
/* allocate stack for irq mode */
. = . + 0x00001000;
tos_irq = .;
/* allocate stack for svc mode */
. = . + 0x00001000;
tos_svc = .;
/* allocate stack space for 15 user processes (5000 each) */
. = . + 0x00075000;
tos_user = .;
}