Use new API 'read_tp()' in proc.c mycpu()

This commit is contained in:
Imbus 2025-06-26 13:28:08 +02:00
parent bd7959cc6c
commit 00bc2aa300

View file

@ -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()]; }