Changeset 0dbc4e7 in mainline for generic/src/syscall/syscall.c


Ignore:
Timestamp:
2006-06-06T08:26:26Z (18 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bffa0b06
Parents:
874621f
Message:

Added possibility to interrupt task at exit from interrupt routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/syscall/syscall.c

    r874621f r0dbc4e7  
    4848#include <sysinfo/sysinfo.h>
    4949#include <console/console.h>
     50#include <console/klog.h>
    5051
    5152/** Print using kernel facility
     
    9293{
    9394        __native rc;
    94         ipl_t ipl;
    95         bool exit = false;
    9695
    9796        if (id < SYSCALL_END)
    9897                rc = syscall_table[id](a1,a2,a3,a4);
    99         else
    100                 panic("Undefined syscall %d", id);
     98        else {
     99                klog_printf("TASK %lld: Unknown syscall id %d",TASK->taskid,id);
     100                task_kill(TASK->taskid);
     101                thread_exit();
     102        }
    101103               
    102         ipl = interrupts_disable();
    103         spinlock_lock(&THREAD->lock);
    104104        if (THREAD->interrupted)
    105                 exit = true;
    106         spinlock_unlock(&THREAD->lock);
    107         interrupts_restore(ipl);
    108        
    109         if (exit)
    110105                thread_exit();
    111106       
Note: See TracChangeset for help on using the changeset viewer.