summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGeorge Koehler <gkoehler@cvs.openbsd.org>2024-11-01 17:16:05 +0000
committerGeorge Koehler <gkoehler@cvs.openbsd.org>2024-11-01 17:16:05 +0000
commite5a412ec8d7f37a4473337bd109767eb80b35f35 (patch)
tree1980c56d6e159ab7f83efe25121be0282741190e /bin
parentfd5369d923b09e1f37ee8576931e6a8fb9079dbd (diff)
In macppc ofwboot, sync instruction cache before entering kernel
My PowerBook G4 had some old code in its instruction cache when it jumped into OpenBSD's kernel. If I got unlucky with a reordered kernel, it would trip over the old code, trap into ddb, and fail to boot. The same kernel would boot fine on a different macppc with different firmware. This problem is rare; I got unlucky only twice, on 2022-04-26 and 2024-07-01. This fix tells ofwboot to invalidate the instruction cache for the loaded kernel before jumping there. Adapted from NetBSD src/sys/arch/macppc/stand/ofwboot/boot.c
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions