📄 uisyscall.h
字号:
/*************************************************************
File Name : syscall.h (RTOS/kernel/include/sys)
Date : 97 11/14
Programmer : Blackdog (Chiou Ealin)
Compiler :
X86P : Gnu Cross-compiler (or DJGPP)
X86R : MSVC++ 1.52 & MASM 6.11
Platform :
X86 protection mode without any function support
X86 real mode without any function support
Usage :
declaration of basic system call interface
Other Information : None
**************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef _SYSCALL_H
#define _SYSCALL_H
/*************************************************************
INCLUDE FILE
**************************************************************/
#include <sys/types.h>
/* #include <sys/constant.h>
#include <sys/config.h>
#include <machine/machine.h>
#include <kernel/thread.h>
#include <kernel/channel.h>
#include <kernel/event.h>
#include <kernel/in_isr.h>
#include <kernel/gc_lib.h>
#ifdef EXTENSION_SYSTEM_CALL
#include <exten/timer.h>
#include <exten/queue.h>
#include <exten/resource.h>
#endif
*/
#ifdef MACHINE_TYPE_8051
/* 2500AD 8051 compiler doesn't support void pointer */
#ifndef VOID_POINTER
#define VOID_POINTER char *
#endif
#else
#ifndef VOID_POINTER
#define VOID_POINTER void *
#endif
#endif
/*************************************************************
MACRO
**************************************************************/
#ifndef disableInterrupt
#define disableInterrupt cli
#endif
#ifndef enableInterrupt
#define enableInterrupt sti
#endif
#ifndef userThread
#define userThread void
#endif
/*************************************************************
KERNEL CRITICAL SECTION CONTROL
**************************************************************/
/*
CS_ON : system status is in criticle section
CS_OFF : system status is in criticle section
*/
#ifndef CS_ON
#define CS_ON 1
#endif
#ifndef CS_OFF
#define CS_OFF 0
#endif
/* return 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -