Differences From Artifact [c4373dead4]:
- File kcore/stop.fn.c — part of check-in [e794c5edef] at 2019-06-29 09:31:50 on branch trunk — add a bunch of code, port the header mechanism to gpp; add a fuckton of definitions and compatibility header code; notably, add core function kstop and x86.lin.{32,64} impl. update docs accordingly (user: lexi, size: 436) [annotate] [blame] [check-ins using]
To Artifact [5c15d4cc49]:
- File kcore/stop.fn.c — part of check-in [6479e060a3] at 2019-07-26 09:51:02 on branch trunk — major update. fix ridiculous old type size determination mechanism. mmap is still broken and i'm not sure why; the syscall does not appear to be going through correctly - see posix_mmap, kmheapa, and kcore/testbin.exe.fn (user: lexi, size: 446) [annotate] [blame] [check-ins using]
5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include <k/core.h>
#include <k/def.h> // so we know what system this is
#include <k/type.h>
#ifdef KFenv_posix
# define STOPFN kio_posix_exit
extern void STOPFN(int);
#else
Knoimpl(kstop)
#endif
noreturn void kstop (longstat code) { STOPFN(code); }
|
| | |
5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include <k/core.h> #include <k/def.h> // so we know what system this is #include <k/type.h> #ifdef KFenv_posix # define STOPFN kio_posix_exit extern noreturn void STOPFN(int); #else Knoimpl(kstop) #endif noreturn void kstop (stat_long code) { STOPFN(code); } |