foundry
Foundry OS: the operating system built on the Rustbelt kernel
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 | //! A buggy program: a function that calls itself forever. Every call needs
//! a little more stack, so the stack grows down until it runs into the
//! *guard zone* below it, which is never mapped. The CPU raises a page
//! fault there and the kernel kills just this program, saying
//! "killed: stack overflow", instead of letting the stack quietly grow over
//! other memory.
/// Uses 1 KiB of stack per call, then calls itself again.
|