Fixed some minor issues with the NOTIFY call.
This commit is contained in:
@@ -107,23 +107,5 @@ extern int errno; /* place where the error numbers go */
|
||||
#define EBADREQUEST (_SIGN 107) /* destination cannot handle request */
|
||||
#define EDONTREPLY (_SIGN 201) /* pseudo-code: don't send a reply */
|
||||
|
||||
/* The following error codes are generated by the kernel itself. */
|
||||
#if DEAD_CODE /* replaced by above codes */
|
||||
#ifdef _SYSTEM
|
||||
#define E_TRY_AGAIN -1003 /* can't send -- tables full */
|
||||
#define E_TASK -1006 /* can't send to task */
|
||||
#define E_OVERRUN -1004 /* interrupt for task that is not waiting */
|
||||
#define E_NO_PERM -1008 /* ordinary users can't send to tasks */
|
||||
#define E_BAD_DEST -1001 /* destination address illegal */
|
||||
#define E_BAD_BUF -1005 /* message buf outside caller's addr space */
|
||||
#define E_BAD_FCN -1009 /* unknown (illegal) request type */
|
||||
#define E_BAD_ADDR -1010 /* bad address given to utility routine */
|
||||
#define E_BAD_PROC -1011 /* bad proc number given to utility */
|
||||
|
||||
#define E_BAD_REQUEST -1009 /* unknown (illegal) request type */
|
||||
#define E_DONT_REPLY -2000 /* pseudo-code: do not send a reply message */
|
||||
#endif /* DEAD_CODE */
|
||||
|
||||
#endif /* _SYSTEM */
|
||||
|
||||
#endif /* _ERRNO_H */
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
#define IDLE -4 /* runs when no one else can run */
|
||||
#define CLOCK -3 /* alarms and other clock functions */
|
||||
#define SYSTASK -2 /* request system functionality */
|
||||
#define HARDWARE -1 /* used as source on notify() messages */
|
||||
#define KERNEL -1 /* used as source on notify() messages */
|
||||
#define HARDWARE KERNEL /* for hardware interrupt handlers */
|
||||
|
||||
/* Number of tasks. Note that NR_PROCS is defined in <minix/config.h>. */
|
||||
#define NR_TASKS 4
|
||||
|
||||
@@ -102,18 +102,7 @@ struct kinfo {
|
||||
phys_bytes bootdev_size;
|
||||
phys_bytes params_base; /* parameters passed by boot monitor */
|
||||
phys_bytes params_size;
|
||||
long notify_held;
|
||||
long notify_blocked;
|
||||
long notify_switching;
|
||||
long notify_reenter;
|
||||
long notify_taskcall;
|
||||
long notify_ok;
|
||||
long notify_unhold;
|
||||
long notify_int;
|
||||
long notify_alarm;
|
||||
long notify_sig;
|
||||
long notify_kmess;
|
||||
long notify_stop;
|
||||
long nr_ntf_pending;
|
||||
int nr_procs; /* number of user processes */
|
||||
int nr_tasks; /* number of kernel tasks */
|
||||
char version[8]; /* kernel version number */
|
||||
|
||||
Reference in New Issue
Block a user