mirror of https://github.com/PrimeDecomp/prime.git
Verify constants in OSRtc
This commit is contained in:
parent
76ac2bfd74
commit
111a04b74f
|
@ -702,7 +702,7 @@ OS_FILES :=\
|
||||||
$(BUILD_DIR)/asm/Dolphin/os/OSReboot.o\
|
$(BUILD_DIR)/asm/Dolphin/os/OSReboot.o\
|
||||||
$(BUILD_DIR)/asm/Dolphin/os/OSReset.o\
|
$(BUILD_DIR)/asm/Dolphin/os/OSReset.o\
|
||||||
$(BUILD_DIR)/asm/Dolphin/os/OSResetSW.o\
|
$(BUILD_DIR)/asm/Dolphin/os/OSResetSW.o\
|
||||||
$(BUILD_DIR)/asm/Dolphin/os/OSRtc.o\
|
$(BUILD_DIR)/src/Dolphin/os/OSRtc.ep.o\
|
||||||
$(BUILD_DIR)/src/Dolphin/os/OSSync.o\
|
$(BUILD_DIR)/src/Dolphin/os/OSSync.o\
|
||||||
$(BUILD_DIR)/asm/Dolphin/os/OSThread.o\
|
$(BUILD_DIR)/asm/Dolphin/os/OSThread.o\
|
||||||
$(BUILD_DIR)/asm/Dolphin/os/OSTime.o\
|
$(BUILD_DIR)/asm/Dolphin/os/OSTime.o\
|
||||||
|
|
|
@ -36,9 +36,9 @@ static BOOL GetRTC(u32* rtc) {
|
||||||
|
|
||||||
cmd = RTC_CMD_READ;
|
cmd = RTC_CMD_READ;
|
||||||
err = FALSE;
|
err = FALSE;
|
||||||
err |= !EXIImm(RTC_CHAN, &cmd, 4, 0x12345, NULL);
|
err |= !EXIImm(RTC_CHAN, &cmd, 4, 1, NULL);
|
||||||
err |= !EXISync(RTC_CHAN);
|
err |= !EXISync(RTC_CHAN);
|
||||||
err |= !EXIImm(RTC_CHAN, &cmd, 4, 0x17231, NULL);
|
err |= !EXIImm(RTC_CHAN, &cmd, 4, 0, NULL);
|
||||||
err |= !EXISync(RTC_CHAN);
|
err |= !EXISync(RTC_CHAN);
|
||||||
err |= !EXIDeselect(RTC_CHAN);
|
err |= !EXIDeselect(RTC_CHAN);
|
||||||
EXIUnlock(RTC_CHAN);
|
EXIUnlock(RTC_CHAN);
|
||||||
|
@ -83,9 +83,9 @@ BOOL __OSSetRTC(u32 rtc) {
|
||||||
|
|
||||||
cmd = RTC_CMD_WRITE;
|
cmd = RTC_CMD_WRITE;
|
||||||
err = FALSE;
|
err = FALSE;
|
||||||
err |= !EXIImm(RTC_CHAN, &cmd, 4, 0x54321, NULL);
|
err |= !EXIImm(RTC_CHAN, &cmd, 4, 1, NULL);
|
||||||
err |= !EXISync(RTC_CHAN);
|
err |= !EXISync(RTC_CHAN);
|
||||||
err |= !EXIImm(RTC_CHAN, &rtc, 4, 0x12345, NULL);
|
err |= !EXIImm(RTC_CHAN, &rtc, 4, 1, NULL);
|
||||||
err |= !EXISync(RTC_CHAN);
|
err |= !EXISync(RTC_CHAN);
|
||||||
err |= !EXIDeselect(RTC_CHAN);
|
err |= !EXIDeselect(RTC_CHAN);
|
||||||
EXIUnlock(RTC_CHAN);
|
EXIUnlock(RTC_CHAN);
|
||||||
|
|
Loading…
Reference in New Issue