mirror of
https://github.com/StepanovPlaton/OSin1000Lines.git
synced 2026-04-04 04:40:48 +04:00
Complete project
This commit is contained in:
@@ -31,6 +31,13 @@ typedef uint32_t vaddr_t;
|
||||
#define USER_BASE 0x1000000
|
||||
|
||||
#define SSTATUS_SPIE (1 << 5)
|
||||
#define SSTATUS_SUM (1 << 18)
|
||||
|
||||
#define SYS_PUTCHAR 1
|
||||
#define SYS_GETCHAR 2
|
||||
#define SYS_EXIT 3
|
||||
#define SYS_READFILE 4
|
||||
#define SYS_WRITEFILE 5
|
||||
|
||||
void *memset(void *buf, char c, size_t n);
|
||||
void *memcpy(void *dst, const void *src, size_t n);
|
||||
|
||||
Reference in New Issue
Block a user