]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix booting on systems that use loader(8) (most of them).
authorjhibbits <jhibbits@FreeBSD.org>
Sun, 16 Oct 2016 04:22:04 +0000 (04:22 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Sun, 16 Oct 2016 04:22:04 +0000 (04:22 +0000)
commit4c6cca20a49fe52a2014ccc637b9dc0ad300d94c
tree7dc1914bfccfd2bced34cb4389883b9e0104bb62
parent3b59134ffec88be4d292bc7a93a30f98008b256c
Fix booting on systems that use loader(8) (most of them).

r306065/r306067 introduced ofw_parse_bootargs(), setting environment variables
from Open Firmware's /chosen/bootargs property.  On systems booting with
loader(8) (meaning, most systems), the initial static kenv is created with no
extra space, causing kern_setenv() to panic.  Since these already have the
environment set directly, there is no need to parse bootargs anyway.

Found by: swills
sys/powerpc/powerpc/machdep.c