-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpos.h
40 lines (26 loc) · 870 Bytes
/
mpos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef WEENSYOS_MPOS_H
#define WEENSYOS_MPOS_H
#include "types.h"
// System call numbers.
// An application calls a system call by causing the specified interrupt.
#define INT_SYS_GETPID 48
#define INT_SYS_FORK 49
#define INT_SYS_YIELD 50
#define INT_SYS_EXIT 51
#define INT_SYS_WAIT 52
#define INT_SYS_KILL 53
#define INT_SYS_NEWTHREAD 54
// These system call numbers currently do nothing; feel free to define them
// as you like.
#define INT_SYS_USER1 53
#define INT_SYS_USER2 54
#define INT_SYS_USER3 55
#define INT_SYS_USER4 56
#define INT_SYS_USER5 57
// The maximum number of processes in the system.
#define NPROCS 16
// Value returned by sys_wait() to indicate that the caller should try again.
#define WAIT_TRYAGAIN (-2)
// The current screen cursor position (stored at memory location 0x190000).
extern uint16_t *cursorpos;
#endif