TempleOSTS_140317.ISO
This commit is contained in:
1 parent
2d2a65d572
commit
7ef616a20e
1416 files changed
+223873
-53917
No files matched your search
@@ -0,0 +1,24 @@
|
||||
interrupt U0 BeepOn()
|
||||
{
|
||||
*LAPIC_EOI(U32 *)=0; //signal end of interrupt
|
||||
Snd(100);
|
||||
}
|
||||
|
||||
interrupt U0 BeepOff()
|
||||
{
|
||||
*LAPIC_EOI(U32 *)=0;
|
||||
Snd(0);
|
||||
}
|
||||
|
||||
U0 IntTest()
|
||||
{
|
||||
//Modify interrupt descriptor table
|
||||
//for CPU #1.
|
||||
IntEntrySet(I_USER,&BeepOn,IDTET_TRAP);
|
||||
IntEntrySet(I_USER+1,&BeepOff,IDTET_TRAP);
|
||||
MPInt(I_USER,1);
|
||||
Sleep(1000);
|
||||
MPInt(I_USER+1,1);
|
||||
}
|
||||
|
||||
IntTest;
|
||||
Reference in new issue
Block a user