avr: fix corrupted .data byte
The stack and the .data section shared the first byte, leading to corruption of the first byte of .data.
Этот коммит содержится в:
родитель
fc0ff3a987
коммит
77934f364f
1 изменённых файлов: 3 добавлений и 0 удалений
|
@ -17,6 +17,9 @@ reset:
|
||||||
out 0x3d, xl; SPL
|
out 0x3d, xl; SPL
|
||||||
out 0x3e, xh; SPH
|
out 0x3e, xh; SPH
|
||||||
|
|
||||||
|
; Add one to the stack pointer, so it doesn't point in the .data section.
|
||||||
|
push r0
|
||||||
|
|
||||||
; Initialize .data
|
; Initialize .data
|
||||||
init_data:
|
init_data:
|
||||||
ldi xl, lo8(_sdata)
|
ldi xl, lo8(_sdata)
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче