KernOS
CR0 Namespace Reference

Control register 0. More...

Enumerations

enum  : uint8_t {
  PE = 0, MP = 1, EM = 2, TS = 3,
  ET = 4, NE = 5, WP = 16, AM = 18,
  NW = 29, CD = 30, PG = 31
}
 

Detailed Description

Control register 0.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : uint8_t
Enumerator
PE 
Protection enable   | Set to enable protected mode                                          
MP 
Monitor coprocessor | Set to allow math coprocessor instruction execution                   
EM 
Emulation           | Set to use software emulation for x87 floating-point instruction      
TS 
Task switched       | Set to delay saving of x87 FPU, SSE on task switch till actually used 
ET 
Extension type      | processor dependent flag                                              
NE 
Numeric error       | Set to use native mechanism for reporting x87 FPU error               
WP 
Write protect       | Set to inhibit kernel procedures from writing to user read-only pages 
AM 
Alignment mask      | Set to enable automatic alignment                                     
NW 
Not write-through   | Clear to enable write-back/write-through                              
CD 
Cache disable       | Set to restrict caching                                               
PG 
Paging              | Set to enable paging                                                  

Definition at line 12 of file registers.h.