Oops, forgot to include these.
-Kevin
Index: kernel/host-beos.c
===================================================================
RCS file: /cvsroot-freemware/freemware/kernel/host-beos.c,v
retrieving revision 1.1
diff -u -r1.1 host-beos.c
--- kernel/host-beos.c 1999/09/07 20:13:50 1.1
+++ kernel/host-beos.c 1999/09/19 16:11:45
@@ -9,16 +9,6 @@
#include "fmw.h"
#include "monitor.h"
-#define soft_int(n) \
- asm volatile ( \
- " movb %b0, __soft_int_vector \n" \
- " jmp __soft_int_n \n" \
- "__soft_int_n: \n" \
- ".byte 0xcd \n" \
- "__soft_int_vector: \n" \
- ".byte 0x00 \n" \
- : : "r" (n) : "memory", "eax" \
- )
struct cookie {
sem_id sem;
Index: kernel/host-linux.c
===================================================================
RCS file: /cvsroot-freemware/freemware/kernel/host-linux.c,v
retrieving revision 1.6
diff -u -r1.6 host-linux.c
--- kernel/host-linux.c 1999/09/07 20:23:35 1.6
+++ kernel/host-linux.c 1999/09/19 16:11:46
@@ -93,20 +93,6 @@
/* Macros */
/************************************************************************/
-// For generating a software interrupt
-#define soft_int(n) \
- asm volatile ( \
- " movb %b0, __soft_int_vector \n" \
- " jmp __soft_int_n \n" \
- "__soft_int_n: \n" \
- " sti \n" \
- " .byte 0xcd \n" \
- "__soft_int_vector: \n" \
- " .byte 0x00 \n" \
- : \
- : "r" (n) \
- : "memory" \
- )
// Check for pending signals
inline unsigned pending_signals(void)
Index: kernel/include/fmw.h
===================================================================
RCS file: /cvsroot-freemware/freemware/kernel/include/fmw.h,v
retrieving revision 1.4
diff -u -r1.4 fmw.h
--- kernel/include/fmw.h 1999/09/07 20:21:38 1.4
+++ kernel/include/fmw.h 1999/09/19 16:11:46
@@ -34,6 +34,20 @@
#define ASM_USED(x) ((void) (x))
+// For generating a software interrupt
+#define soft_int(n) \
+ asm volatile ( \
+ " movb %b0, __soft_int_vector \n" \
+ " jmp __soft_int_n \n" \
+ "__soft_int_n: \n" \
+ " sti \n" \
+ " .byte 0xcd \n" \
+ "__soft_int_vector: \n" \
+ " .byte 0x00 \n" \
+ : \
+ : "r" ((u8) (n) ) \
+ : "memory" \
+ )
/*
* ioctl() names