|
Re: Problem with interrupts on the PIC
I noticed we're not supposed to use any of the high priority interrupts... I looked around a little bit and I notice there's a handler already located in the IFI library file.. but anyone know what they're using it for?
Also... technically, couldn't we just hook the interrupt similar to a TSR in DOS? Unfortunately I'm not going to have access to the controller until the beginning of the year so I'm just throwing code together and hopefully it works out.
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}
Visit my completely useless website! http://randomperson.cjb.net
|