Ровные ребята до сих пор так хендлят любые ошибки
The original Linux 0.01 source code from 1991 is fascinating.
Linus Torvalds' Makefile used 16-bit assembly tools alongside GCC to build a bootable kernel image.
And look at how he handled a kernel panic: