/*!
    \file  syscalls.h
    \brief syscalls

    Copyright (c) 2003 HigePon
    WITHOUT ANY WARRANTY

    \author  HigePon
    \version $Revision: 1.4 $
    \date   create:2003/03/22 update:$Date: 2004/09/25 15:24:27 $
*/
#ifndef _MONA_SYSCALL_
#define _MONA_SYSCALL_

#include "global.h"

extern "C" void syscall_entrance(void);
extern "C" dword systemcall_mutex_create();
extern "C" dword systemcall_mutex_lock(dword id);
extern "C" dword systemcall_mutex_unlock(dword id);

#define enter_kernel_lock_mode()    \
    dword __eflags = get_eflags();  \
    disableInterrupt();             \

#define exit_kernel_lock_mode() \
         set_eflags(__eflags);  \


#endif
