mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
change pointers used in function calls
change from void* to cls_t* as it makes more sense to be this way
This commit is contained in:
@@ -5,12 +5,12 @@
|
||||
cls_t bspcls;
|
||||
|
||||
|
||||
void arch_setcls(void* addr){
|
||||
void arch_setcls(cls_t* addr){
|
||||
wrmsr(MSR_GSBASE, (uint64_t)addr);
|
||||
}
|
||||
|
||||
void* arch_getcls(){
|
||||
return (void*)rdmsr(MSR_GSBASE);
|
||||
cls_t* arch_getcls(){
|
||||
return (cls_t*)rdmsr(MSR_GSBASE);
|
||||
}
|
||||
|
||||
void bsp_setcls(){
|
||||
|
||||
Reference in New Issue
Block a user