From d4edbf51e392d7a172058f8149d1f372318a7ad4 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 28 Dec 2014 23:53:06 +0000 Subject: [PATCH] syscalls.h: update sysinfo block --- Library/include/syscalls.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index 394cbb23..1c057985 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -33,7 +33,7 @@ struct _uzisysinfoblk { uint8_t infosize; /* For expandability */ uint8_t banks; /* Banks in our 64K (and thus pagesize) */ uint8_t max_open; - uint8_t pad; + uint8_t nproc; /* Number of processes */ uint16_t ticks; /* Tick rate in HZ */ uint16_t memk; /* Memory in KB */ uint16_t usedk; /* Used memory in KB */ @@ -64,6 +64,15 @@ struct _uzifilesys { uint16_t s_mntpt; }; +struct hd_geometry { + uint8_t heads; + uint8_t sectors; + uint16_t cylinders; + uint32_t start; +}; +#define HDIO_GETGEO 0x0101 +#define HDIO_GET_IDENTITY 0x0102 /* Not yet implemented anywhere */ + extern int _exit(int code); extern int alarm(int16_t secs); extern int open(const char *path, int flags, ...); -- 2.34.1