feat: Intel/AMD AVX & MSR sensors, Gigabit PCIe NICs, AHCI SATA, FAT32, and ogit in Ring 3
This commit is contained in:
+12
-12
@@ -107,12 +107,12 @@ pub unsafe fn init() {
|
||||
"push {tmp}",
|
||||
"retfq",
|
||||
"2:",
|
||||
"mov ax, 0x10",
|
||||
"mov ds, ax",
|
||||
"mov es, ax",
|
||||
"mov ss, ax",
|
||||
"mov fs, ax",
|
||||
"mov gs, ax",
|
||||
"mov {tmp:e}, 0x10",
|
||||
"mov ds, {tmp:x}",
|
||||
"mov es, {tmp:x}",
|
||||
"mov ss, {tmp:x}",
|
||||
"mov fs, {tmp:x}",
|
||||
"mov gs, {tmp:x}",
|
||||
"ltr {tss_sel:x}",
|
||||
in(reg) &descriptor,
|
||||
tmp = out(reg) _,
|
||||
@@ -138,12 +138,12 @@ pub unsafe fn init_ap(cpu_id: usize) {
|
||||
"push {tmp}",
|
||||
"retfq",
|
||||
"2:",
|
||||
"mov ax, 0x10",
|
||||
"mov ds, ax",
|
||||
"mov es, ax",
|
||||
"mov ss, ax",
|
||||
"mov fs, ax",
|
||||
"mov gs, ax",
|
||||
"mov {tmp:e}, 0x10",
|
||||
"mov ds, {tmp:x}",
|
||||
"mov es, {tmp:x}",
|
||||
"mov ss, {tmp:x}",
|
||||
"mov fs, {tmp:x}",
|
||||
"mov gs, {tmp:x}",
|
||||
"ltr {tss_sel:x}",
|
||||
in(reg) &descriptor,
|
||||
tmp = out(reg) _,
|
||||
|
||||
Reference in New Issue
Block a user