Use new API 'read_tp()' in proc.c mycpu()
This commit is contained in:
parent
bd7959cc6c
commit
00bc2aa300
1 changed files with 1 additions and 1 deletions
|
@ -5,4 +5,4 @@ struct Cpu cpus[NCPU];
|
|||
/**
|
||||
* Return this CPU's cpu struct. Interrupts must be disabled.
|
||||
*/
|
||||
inline struct Cpu *mycpu(void) { return &cpus[r_tp()]; }
|
||||
inline struct Cpu *mycpu(void) { return &cpus[read_tp()]; }
|
||||
|
|
Loading…
Add table
Reference in a new issue