rust-kernel
Rustbelt: a hobby x86_64 kernel written in Rust
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | //! Stage 15.1, what a static musl binary needs from the kernel before it
//! can even start: its own FPU/SSE/AVX registers per thread (saved on
//! every context switch, in signal frames, cleared by exec), Linux's
//! C-string path syscalls and `struct stat`, and Linux's syscall numbers.
//! As before the detailed checks live in user programs (fputest,
//! pathtest, rawabi: exit code = failed checks); this file runs them and
//! checks nothing is left behind.
extern crate alloc;
use String;
use ;
use PanicInfo;
use ;
use ;
entry_point!;
!
/// Run a program twice (the first warms caches), check it passes and
/// threads, processes and memory frames come back to where they were.
/// The kernel set up the FPU on every CPU: XSAVE under QEMU's `-cpu max`.
/// 12 threads in 3 processes with distinct vector registers on 4 CPUs;
/// signal handlers that clobber them; fork copies, exec clears; SIGFPE.
!
|