Compare commits
2 Commits
fbaf9df59f
...
c8a9fcf0d5
Author | SHA1 | Date | |
---|---|---|---|
c8a9fcf0d5 | |||
dc231741b7 |
@ -284,3 +284,9 @@ void cpuid1(uint * ebx, uint * ecx, uint * edx)
|
||||
{
|
||||
__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,6 +74,7 @@ struct Idt
|
||||
public static enum ulong INT_APIC_TIMER = 0x70u;
|
||||
public static enum ulong INT_APIC_LINT0 = 0x71u;
|
||||
public static enum ulong INT_APIC_LINT1 = 0x72u;
|
||||
public static enum ulong INT_KERNEL_SWINT = 0x80u;
|
||||
public static enum ulong INT_APIC_SPURIOUS = 0xFFu;
|
||||
|
||||
struct idtr_t
|
||||
|
Loading…
x
Reference in New Issue
Block a user