Skip to content

Commit f35aeaf

Browse files
committed
bugfix using const variables for linkerscript provided pointers
1 parent 4b33d19 commit f35aeaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

klib/entry/entry.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ extern "C" {
1010
// linkerscript. Only the address of the variable should be used. The
1111
// address points to the correct location of the variable. This
1212
// pointer points to the first address that is not stack
13-
extern const uint32_t __stack_start;
13+
extern uint32_t __stack_start;
1414

1515
// pointer to the end of the stack. Definition is done in the
1616
// linkerscript. Only the address of the variable should be used. The
1717
// address points to the correct location of the variable
18-
extern const uint32_t __stack_end;
18+
extern uint32_t __stack_end;
1919

2020
// pointer to the start of the heap. Definition is done in the
2121
// linkerscript. Only the address of the variable should be used. The
2222
// address points to the correct location of the variable
23-
extern const uint32_t __heap_start;
23+
extern uint32_t __heap_start;
2424

2525
// pointer to the end of the heap. Definition is done in the
2626
// linkerscript. Only the address of the variable should be used. The
2727
// address points to the correct location of the variable
28-
extern const uint32_t __heap_end;
28+
extern uint32_t __heap_end;
2929

3030
// arm vector table. Can be used to override the weak symbol
3131
extern void (*const volatile __vectors[])(void);

0 commit comments

Comments
 (0)