Compare commits
No commits in common. "c8a9fcf0d50f16d96e9a8018845abfeb24df6d55" and "fbaf9df59fd73ed4903e5b31111347a0190e41a7" have entirely different histories.
c8a9fcf0d5
...
fbaf9df59f
@ -284,9 +284,3 @@ void cpuid1(uint * ebx, uint * ecx, uint * edx)
|
|||||||
{
|
{
|
||||||
__asm("cpuid", "=*{ebx},=*{ecx},=*{edx},{eax}", ebx, ecx, edx, 1u);
|
__asm("cpuid", "=*{ebx},=*{ecx},=*{edx},{eax}", ebx, ecx, edx, 1u);
|
||||||
}
|
}
|
||||||
|
|
||||||
void swint(int swint_id)()
|
|
||||||
{
|
|
||||||
static assert((0 <= swint_id) && (swint_id <= 255));
|
|
||||||
mixin(`__asm("int $$`, swint_id, `", "");`);
|
|
||||||
}
|
|
||||||
|
@ -74,7 +74,6 @@ struct Idt
|
|||||||
public static enum ulong INT_APIC_TIMER = 0x70u;
|
public static enum ulong INT_APIC_TIMER = 0x70u;
|
||||||
public static enum ulong INT_APIC_LINT0 = 0x71u;
|
public static enum ulong INT_APIC_LINT0 = 0x71u;
|
||||||
public static enum ulong INT_APIC_LINT1 = 0x72u;
|
public static enum ulong INT_APIC_LINT1 = 0x72u;
|
||||||
public static enum ulong INT_KERNEL_SWINT = 0x80u;
|
|
||||||
public static enum ulong INT_APIC_SPURIOUS = 0xFFu;
|
public static enum ulong INT_APIC_SPURIOUS = 0xFFu;
|
||||||
|
|
||||||
struct idtr_t
|
struct idtr_t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user