Skip to content

Commit

Permalink
PR
Browse files Browse the repository at this point in the history
  • Loading branch information
hensldm committed Dec 8, 2023
1 parent 2e07b1d commit dbd1093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ s32 Fault_Printf(s32 x, s32 y, const char* fmt, ...) {
}

void Fault_Sleep(s32 ms) {
u64 cycles = (ms * osClockRate) / 1000ull;
u64 cycles = (ms * osClockRate) / 1000ULL;

csleep(cycles);
}
Expand Down Expand Up @@ -241,10 +241,10 @@ void Fault_PrintThreadContext(OSThread* thread) {
s32 y = 20;
s16 causeStrIndex = (thread->context.cause >> 2) & 0x1F;

if (causeStrIndex == 23) { // Watchpoint
if (causeStrIndex == (EXC_WATCH >> CAUSE_EXCSHIFT)) {
causeStrIndex = 16;
}
if (causeStrIndex == 31) { // Virtual coherency on data
if (causeStrIndex == (EXC_VCED >> CAUSE_EXCSHIFT)) {
causeStrIndex = 17;
}

Expand Down

0 comments on commit dbd1093

Please sign in to comment.