diff options
author | George Koehler <gkoehler@cvs.openbsd.org> | 2024-11-01 17:16:05 +0000 |
---|---|---|
committer | George Koehler <gkoehler@cvs.openbsd.org> | 2024-11-01 17:16:05 +0000 |
commit | e5a412ec8d7f37a4473337bd109767eb80b35f35 (patch) | |
tree | 1980c56d6e159ab7f83efe25121be0282741190e /usr.bin/su | |
parent | fd5369d923b09e1f37ee8576931e6a8fb9079dbd (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 'usr.bin/su')
0 files changed, 0 insertions, 0 deletions