summaryrefslogtreecommitdiff
path: root/sys/src/9/port/rebootcmd.c
AgeCommit message (Collapse)Author
2023-04-08kernel: Clear secrets on rebootcinap_lenrek
The idea is that when we reboot, we zero out memory written by processes that have the private flag set (such as factotum and keyfs), and also clear the secrmem pool, which contains TLS keys and the state of the random number generator. This is so the newly booted kernel or firmware will not find these secret keys in memory.
2021-05-29kernel: use 64-bit virtual entry point for expanded header, document ↵cinap_lenrek
behaviour in a.out(6) For 64-bit architectures, the a.out header has the HDR_MAGIC flag set in the magic and is expanded by 8 bytes containing the 64-bit virtual address of the programs entry point. While Exec.entry contains physical address for kernel images. Our sysexec() would always use Exec.entry, even for 64-bit a.out binaries, which worked because PADDR(entry) == entry for userspace pointers. This change fixes it, having the kernel use the 64-bit entry point and document the behaviour in the manpage.
2019-05-17bcm64: switch to 64k page sizecinap_lenrek
2017-06-28kernel: pass bootargs also in multiboot command line, retire the bootline ↵cinap_lenrek
mechanism to pass arguments to /boot/boot
2015-11-30kernel: cleanup exit()/shutdown()/reboot() codecinap_lenrek
introduce cpushutdown() function that does the common operation of initiating shutdown, returning once all cpu's got the message and are about to shutdown. this avoids duplicated code which isnt really machine specific. automatic reboot on panic only when *debug= is not set and the machine is a cpu server or has no display, otherwise just hang.
2015-07-10kernel: use HDR_MAGIC constant to handle Exec header extension, make ↵cinap_lenrek
rebootcmd() handle AOUT_MAGIC macro
2014-03-16pc64: amd64 kernel reboot supportcinap_lenrek
2011-12-12kernel: fix more malloc/smalloc errorscinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen