Verify constants in OSRtc

Former-commit-id: 111a04b74f
This commit is contained in:
Phillip Stephens 2022-10-10 22:51:26 -07:00
parent 5fbb00a892
commit 92306d04c8
2 changed files with 5 additions and 5 deletions

View File

@ -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\

View File

@ -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);