Stop openbios-unix from crashing when auto-boot? is enabled.
[openbios.git] / include / kernel / kernel.h
blob15605b5fb8c044fb222fcd40f9980dfafd39a31f
1 /*
2 * Creation Date: <2003/12/19 00:20:11 samuel>
3 * Time-stamp: <2004/01/07 19:19:14 samuel>
5 * <kernel.h>
9 * Copyright (C) 2003, 2004 Samuel Rydh (samuel@ibrium.se)
10 * Stefan Reinauer (stepan@openbios.org)
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * version 2
18 #ifndef _H_KERNEL
19 #define _H_KERNEL
21 #include "kernel/stack.h"
22 #include "asm/io.h"
24 /* Interrupt status */
25 #define FORTH_INTSTAT_CLR 0x0
26 #define FORTH_INTSTAT_STOP 0x1
27 #define FORTH_INTSTAT_DBG 0x2
29 extern volatile int interruptforth;
30 extern int enterforth( xt_t xt );
31 extern void panic(const char *error) __attribute__ ((noreturn));
33 extern xt_t findword(const char *s1);
34 extern void modules_init( void );
36 /* arch kernel hooks */
37 extern void exception(cell no);
39 #ifdef FCOMPILER
40 extern void include_file( const char *str );
41 extern void encode_file( const char *str );
42 extern int get_inputbyte( void );
43 extern void put_outputbyte( int c );
44 #endif
46 #ifndef BOOTSTRAP
47 #undef putchar
48 #undef getchar
50 extern int putchar( int ch );
51 extern int getchar( void );
52 #endif
54 extern int availchar( void );
56 #endif /* _H_KERNEL */