/shark/trunk/oslib/ll/i386/x-bios.h |
---|
61,14 → 61,14 |
typedef struct { |
/* The GDT linear address inheritable from X */ |
DWORD GDT_base; |
DWORD _GDT_base; |
/* These are used for BIOS calling */ |
X_REGS16 ir; |
X_REGS16 or; |
X_SREGS16 sr; |
DWORD irqno; |
X_REGS16 _ir; |
X_REGS16 _or; |
X_SREGS16 _sr; |
DWORD _irqno; |
/* This is the X version */ |
DWORD ver; |
DWORD _ver; |
} X_CALLBIOS; |
X_CALLBIOS * x_bios_address(void); |
/shark/trunk/oslib/ll/i386/hw-instr.h |
---|
26,7 → 26,6 |
#define __LL_I386_HW_INSTR_H__ |
#include <ll/i386/defs.h> |
BEGIN_DEF |
#define INLINE_OP __inline__ static |
35,6 → 34,8 |
/* Low Level I/O funcs are in a separate file (by Luca) */ |
#include <ll/i386/hw-io.h> |
BEGIN_DEF |
INLINE_OP WORD get_CS(void) |
{WORD r; __asm__ __volatile__ ("movw %%cs,%0" : "=q" (r)); return(r);} |
/shark/trunk/oslib/ll/i386/stdio.h |
---|
23,10 → 23,10 |
#define __LL_I386_STDIO_H__ |
#include <ll/i386/defs.h> |
#include <ll/stdarg.h> |
BEGIN_DEF |
#include <ll/stdarg.h> |
int vsprintf(char *buf,char *fmt,va_list parms); |
int vksprintf(char *buf,char *fmt,va_list parms); |
int sprintf(char *buf,char *fmt,...) __attribute__((__format__(printf,2,3))); |