00001 /* src_experimental/kernel/sys_var.h 00002 CubeOS Version 0.4.90 experimental 00003 Copyright (C) 1999,2000 Holger Kenn 00004 00005 CubeOS is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or any later version. 00009 00010 CubeOS is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 */ 00016 #ifndef SYS_VAR_H 00017 #define SYS_VAR_H 00018 00023 extern int _KERN_sys_error; 00024 extern unsigned short _KERN_sys_errorcode; 00025 extern unsigned char TTY_Blocking_Serial_Out; 00026 extern unsigned long _time_seconds; 00027 extern unsigned short _time_ticks; 00028 extern unsigned short _KERN_quantum_count; 00029 extern unsigned short _KERN_context_srsave; 00030 extern int __MYPID; 00031 extern int _KERN_disablecount; 00032 extern unsigned short KERN_srsave; 00033 void KERN_sysvarinit(); 00034 00035 /* kernel error codes for debugging */ 00036 00037 #define SYS_ERR_DUARTABUF_OVF 0x1 00038 #define SYS_ERR_DUARTBBUF_OVF 0x2 00039 #define SYS_ERR_SCIBUF_OVF 0x3 00040 00041 #endif