Many architectures call initmsgbuf() really really early, before uvm is
authorkettenis <kettenis@openbsd.org>
Tue, 13 Jan 2015 18:51:27 +0000 (18:51 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 13 Jan 2015 18:51:27 +0000 (18:51 +0000)
commit42be3c458464859479a9fde7deeed8544e1b21b6
treed6016519811c2a338a57fdb891056a24b423cc6a
parent86771d3b5a6ccc6c1b902a2a47958f51f97c0acd
Many architectures call initmsgbuf() really really early, before uvm is
initialized.  Calling malloc(9) at that point is not a good idea.  So
initialize consbuf later.

Fixes dmesg -s on sparc64 (and probably a few other architectures).

ok miod@, deraadt@
sys/kern/init_main.c
sys/kern/subr_log.c
sys/sys/msgbuf.h