1
0
Fork 0
forked from len0rd/rockbox

S5L8702: Read WDT_BASE from SoC definitions

Tested on ipod6g (normal + bootloader).

No functional change, no binary size change, the only difference is using r3 instead of r1 for the WDT_BASE address value.

Change-Id: I2ce2b7d987671cb4fcbbcdde574437b21a534da0
This commit is contained in:
Vencislav Atanasov 2024-12-14 06:14:21 +02:00 committed by Solomon Peachy
parent eb57d42879
commit 037172d5c2

View file

@ -247,9 +247,9 @@ void system_reboot(void)
{
/* Reset the SoC */
asm volatile("msr CPSR_c, #0xd3 \n"
"mov r0, #0x100000 \n"
"mov r1, #0x3c800000 \n"
"str r0, [r1] \n");
"mov r0, #0x100000 \n");
asm volatile("str r0, [%0] \n" : : "r"(WDT_BASE));
/* Wait for reboot to kick in */
while(1);