takes one uart input interrupt, then panics
This commit is contained in:
parent
50cbc75102
commit
a9c1a6f742
6 changed files with 108 additions and 6 deletions
16
proc.c
16
proc.c
|
@ -365,6 +365,22 @@ scheduler(void)
|
|||
// Enable interrupts on this processor.
|
||||
// XXX riscv
|
||||
//sti();
|
||||
|
||||
if(0){ uint x = * (uint*) 0xc001000;
|
||||
if(x != 0){
|
||||
printf("pending %x\n", x);
|
||||
}
|
||||
x = *(uint*)0xc001004;
|
||||
if(x != 0)
|
||||
printf("pending %x\n", x);
|
||||
}
|
||||
|
||||
if(0){
|
||||
uint uartgetc(void);
|
||||
uint x = uartgetc();
|
||||
if(x != 0)
|
||||
printf("%x ", x);
|
||||
}
|
||||
|
||||
// Loop over process table looking for process to run.
|
||||
acquire(&ptable.lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue