Allow the MD backend to provide an alternative to
#define curthread PCPU_GET(curthread) since its so heavily used in the kernel and ripe for compile-speed optimization on some platforms.
This commit is contained in:
parent
3500189b0e
commit
de8e370ec1
@ -83,7 +83,9 @@ extern struct cpuhead cpuhead;
|
||||
#define curkse (curthread->td_kse)
|
||||
#define curksegrp (curthread->td_ksegrp)
|
||||
#define curproc (curthread->td_proc)
|
||||
#ifndef curthread
|
||||
#define curthread PCPU_GET(curthread)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* MI PCPU support functions
|
||||
|
Loading…
Reference in New Issue
Block a user