inline void
call16(struct bregs *callregs)
{
- if (!MODE16 && getesp() > BUILD_STACK_ADDR)
+ if (!MODESEGMENT && getesp() > BUILD_STACK_ADDR)
panic("call16 with invalid stack\n");
asm volatile(
#if MODE16 == 1
inline void
call16big(struct bregs *callregs)
{
- ASSERT32();
+ ASSERT32FLAT();
if (getesp() > BUILD_STACK_ADDR)
panic("call16 with invalid stack\n");
asm volatile(
inline void
__call16_int(struct bregs *callregs, u16 offset)
{
- if (MODE16)
+ if (MODESEGMENT)
callregs->code.seg = GET_SEG(CS);
else
callregs->code.seg = SEG_BIOS;
);
void
-check_irqs()
+check_irqs(void)
{
if (MODE16) {
asm volatile(
void *
#undef memcpy
memcpy(void *d1, const void *s1, size_t len)
-#if MODE16 == 0
+#if MODESEGMENT == 0
#define memcpy __builtin_memcpy
#endif
{
// See if a keystroke is pending in the keyboard buffer.
static int
-check_for_keystroke()
+check_for_keystroke(void)
{
struct bregs br;
memset(&br, 0, sizeof(br));
// Return a keystroke - waiting forever if necessary.
static int
-get_raw_keystroke()
+get_raw_keystroke(void)
{
struct bregs br;
memset(&br, 0, sizeof(br));