Skip to content

Commit

Permalink
- Enable CPU power management in hypervisor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Mar 24, 2021
1 parent 8c29144 commit 5183449
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cube/patches/base/common.h
Expand Up @@ -40,7 +40,10 @@ typedef volatile f64 vf64;
unsigned long msr; \
asm volatile ("mfmsr %0" : "=r" (msr)); \
asm volatile ("ori %0,%0,0x8000" : "+r" (msr)); \
asm volatile ("oris %0,%0,0x0004" : "+r" (msr)); \
asm volatile ("sync"); \
asm volatile ("mtmsr %0" :: "r" (msr)); \
asm volatile ("isync"); \
})

extern volatile u16 PE[24];
Expand Down

0 comments on commit 5183449

Please sign in to comment.