From: Alan Cox Date: Fri, 26 Dec 2014 20:42:43 +0000 (+0000) Subject: syscall uname: Add the uptime data X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fd21296c39babf895fda524230eea216bd93db2e;p=FUZIX.git syscall uname: Add the uptime data While are breaking the prototype ABI lets just stuff the uptime data in the sysinfo block and be done with it. --- diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index 11b93f95..c0be3662 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -495,12 +495,15 @@ struct sysinfoblk { uint8_t infosize; /* For expandability */ uint8_t banks; /* Banks in our 64K (and thus pagesize) */ uint8_t max_open; + uint8_t spare; uint16_t ticks; /* Tick rate in HZ */ uint16_t memk; /* Memory in KB */ uint16_t usedk; /* Used memory in KB */ uint16_t config; /* Config flag mask */ #define CONF_PROFIL 1 #define CONF_NET 2 /* Hah.. 8) */ + uint16_t loadavg[3]; + uint32_t spare2; /* Followed by uname strings */ }; diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index bb7953d8..394cbb23 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -33,10 +33,13 @@ struct _uzisysinfoblk { uint8_t infosize; /* For expandability */ uint8_t banks; /* Banks in our 64K (and thus pagesize) */ uint8_t max_open; + uint8_t pad; uint16_t ticks; /* Tick rate in HZ */ uint16_t memk; /* Memory in KB */ uint16_t usedk; /* Used memory in KB */ uint16_t config; /* Config flag mask */ + uint16_t loadavg[3]; + uint32_t spare; }; /*