Complete reformat
This commit is contained in:
parent
b1a34398e9
commit
d6793bf093
60 changed files with 1952 additions and 1995 deletions
|
|
@ -8,7 +8,7 @@ void main();
|
|||
void timerinit();
|
||||
|
||||
// entry.S needs one stack per CPU.
|
||||
__attribute__ ((aligned (16))) char stack0[4096 * NCPU];
|
||||
__attribute__((aligned(16))) char stack0[4096 * NCPU];
|
||||
|
||||
// a scratch area per CPU for machine-mode timer interrupts.
|
||||
u64 timer_scratch[NCPU][5];
|
||||
|
|
@ -67,7 +67,7 @@ timerinit()
|
|||
|
||||
// ask the CLINT for a timer interrupt.
|
||||
int interval = 1000000; // cycles; about 1/10th second in qemu.
|
||||
*(u64*)CLINT_MTIMECMP(id) = *(u64*)CLINT_MTIME + interval;
|
||||
*(u64 *)CLINT_MTIMECMP(id) = *(u64 *)CLINT_MTIME + interval;
|
||||
|
||||
// prepare information in scratch[] for timervec.
|
||||
// scratch[0..2] : space for timervec to save registers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue