Typo in zcmp_irq_kill tests

This commit is contained in:
Luke Wren 2023-11-04 12:24:45 +00:00
parent 9955807520
commit 514ab0bb32
2 changed files with 6 additions and 6 deletions

View File

@ -24,8 +24,8 @@ uint32_t __attribute__((naked)) foreground_task(uint32_t iters) {
"addi a0, a0, -1\n"
"addi a1, a1, 1\n"
"bgtz a0, 1b\n"
// Normal return -- we've been counting up in a1 as we count up in a0, so
// return a1 to confirm we iterated the expected number of times
// Normal return -- we've been counting up in a1 as we count down in
// a0, so return a1 to confirm we iterated the expected number of times
"mv a0, a1\n"
"lw s0, 0(sp)\n"
"lw ra, 4(sp)\n"
@ -45,7 +45,7 @@ void __attribute__((noreturn)) panic_sp_changed(void) {
}
void __attribute__((interrupt)) isr_machine_timer(void) {
uint dwell = rand() % 301;
unsigned int dwell = rand() % 301;
mm_timer->mtimecmp = mm_timer->mtime + dwell;
}

View File

@ -26,8 +26,8 @@ uint32_t __attribute__((naked)) foreground_task(uint32_t iters) {
"addi a2, a2, -1\n"
"addi a1, a1, 1\n"
"bgtz a2, 1b\n"
// Normal return -- we've been counting up in a1 as we count up in a2, so
// return a1 to confirm we iterated the expected number of times
// Normal return -- we've been counting up in a1 as we count down in a2,
// so return a1 to confirm we iterated the expected number of times
"mv a0, a1\n"
"lw s0, 0(sp)\n"
"lw ra, 4(sp)\n"
@ -47,7 +47,7 @@ void __attribute__((noreturn)) panic_sp_changed(void) {
}
void __attribute__((interrupt)) isr_machine_timer(void) {
uint dwell = rand() % 301;
unsigned int dwell = rand() % 301;
mm_timer->mtimecmp = mm_timer->mtime + dwell;
}