Team Ai
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes847downloads
Interrupts.txt25 linesDownload Raw Back to MultiCore
1 2interrupt U0 IntBeepOn()3{4  *(dev.uncached_alias+LAPIC_EOI)(U32 *)=0; //signal end of interrupt5  Snd(34);6}7 8interrupt U0 IntBeepOff()9{10  *(dev.uncached_alias+LAPIC_EOI)(U32 *)=0;11  Snd;12}13 14U0 IntTest()15{//Modify interrupt descriptor table use by all cores.16  IntEntrySet(I_USER,&IntBeepOn,IDTET_TRAP);17  IntEntrySet(I_USER+1,&IntBeepOff,IDTET_TRAP);18//Issue interupt to core119  MPInt(I_USER,1);20  Sleep(1000);21  MPInt(I_USER+1,1);22}23 24IntTest;25