Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 39 → Rev 40

/shark/trunk/oslib/xlib/xbios.c
26,12 → 26,12
#include <ll/i386/x-bios.h>
#include <ll/i386/mem.h>
 
FILE(X - BIOS);
FILE(X-BIOS);
 
/* The interface between X (and 32 bit PM) and BIOS (which runs at 16 bits */
/* It works as int86() standard library call */
 
void X_callBIOS(int service, X_REGS16 * in, X_REGS16 * out, X_SREGS16 * s)
void X_callBIOS(int service,X_REGS16 *in,X_REGS16 *out,X_SREGS16 *s)
{
/* Assembler gate JMP instruction */
extern void _x_callBIOS(void);
39,13 → 39,13
 
/* Send interrupt request & register through the X_Info structure */
xbc->irqno = service;
memcpy(&(xbc->ir), in, sizeof(X_REGS16));
memcpy(&(xbc->sr), s, sizeof(X_SREGS16));
 
memcpy(&(xbc->ir),in,sizeof(X_REGS16));
memcpy(&(xbc->sr),s,sizeof(X_SREGS16));
/* Back to RM to execute the BIOS routine */
_x_callBIOS();
 
/* Get the return register values */
memcpy(out, &(xbc->or), sizeof(X_REGS16));
memcpy(s, &(xbc->sr), sizeof(X_SREGS16));
memcpy(out,&(xbc->or),sizeof(X_REGS16));
memcpy(s,&(xbc->sr),sizeof(X_SREGS16));
}