forked from AbleOS/holey-bytes
fixing vm bug
This commit is contained in:
parent
6cb9489e9a
commit
32bed04914
|
@ -888,7 +888,7 @@ create_back_buffer := fn(total_pages: int): ^u32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
main := fn(): void {
|
main := fn(): void {
|
||||||
create_back_buffer(10)
|
create_back_buffer(400)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -270,10 +270,10 @@ where
|
||||||
self.bump_pc::<OpsRRP>();
|
self.bump_pc::<OpsRRP>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
JLTS => self.cond_jmp::<u64>(Ordering::Less),
|
JLTS => self.cond_jmp::<i64>(Ordering::Less),
|
||||||
JGTS => self.cond_jmp::<u64>(Ordering::Greater),
|
JGTS => self.cond_jmp::<i64>(Ordering::Greater),
|
||||||
JLTU => self.cond_jmp::<i64>(Ordering::Less),
|
JLTU => self.cond_jmp::<u64>(Ordering::Less),
|
||||||
JGTU => self.cond_jmp::<i64>(Ordering::Greater),
|
JGTU => self.cond_jmp::<u64>(Ordering::Greater),
|
||||||
ECA => {
|
ECA => {
|
||||||
// So we don't get timer interrupt after ECALL
|
// So we don't get timer interrupt after ECALL
|
||||||
if TIMER_QUOTIENT != 0 {
|
if TIMER_QUOTIENT != 0 {
|
||||||
|
|
Loading…
Reference in a new issue