Flailing with Invalid Opcode..
This commit is contained in:
parent
acfe8c2666
commit
429fa55a73
|
@ -55,7 +55,7 @@ uint32_t WriteMXCSR(uint32_t Data);
|
|||
size_t ReadControlRegister(int CRX);
|
||||
size_t WriteControlRegister(int CRX, size_t Data);
|
||||
|
||||
size_t ReadExtendedControlRegister(size_t XCRX);
|
||||
//size_t ReadExtendedControlRegister(size_t XCRX);
|
||||
size_t WriteExtendedControlRegister(size_t XCRX, size_t Data);
|
||||
|
||||
void InvalidatePage(size_t Page);
|
||||
|
|
|
@ -65,13 +65,13 @@ void PrepareCPU() {
|
|||
SetupInitialGDT();
|
||||
SetupIDT();
|
||||
|
||||
SetupExtensions();
|
||||
//SetupExtensions();
|
||||
|
||||
InitInterrupts();
|
||||
|
||||
}
|
||||
|
||||
void SetupExtensions() {
|
||||
/*void SetupExtensions() {
|
||||
|
||||
// Enable SSE
|
||||
size_t CR0 = ReadControlRegister(0);
|
||||
|
@ -97,14 +97,14 @@ void SetupExtensions() {
|
|||
CR0 |= (1 << 1);
|
||||
CR0 |= (1 << 2);
|
||||
|
||||
/*CR0 |= (1 << 5);
|
||||
CR0 |= (1 << 5);
|
||||
CR0 |= (1 << 6);
|
||||
CR0 |= (1 << 7);*/
|
||||
CR0 |= (1 << 7);
|
||||
|
||||
SerialPrintf("About to write xcr0: %x\n", CR0);
|
||||
WriteExtendedControlRegister(0, CR0);
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
void SetupInitialGDT() {
|
||||
DESC_TBL GDTData = {0};
|
||||
|
|
Loading…
Reference in New Issue
Block a user