mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
Fix the build when KDB is disabled. The second instance of rfi in
trap_subr.S that is patched at runtime to rfid on 64-bit systems is inside KDB-specific code, so don't patch it without KDB.
This commit is contained in:
parent
748a3a51fa
commit
029c6e958c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190750
|
@ -383,7 +383,10 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, void *mdp)
|
|||
if (ppc64) {
|
||||
/* Patch the two instances of rfi -> rfid */
|
||||
bcopy(&rfid_patch,&rfi_patch1,4);
|
||||
#ifdef KDB
|
||||
/* rfi_patch2 is at the end of dbleave */
|
||||
bcopy(&rfid_patch,&rfi_patch2,4);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Copy a code snippet to restore 32-bit bridge mode
|
||||
|
|
Loading…
Reference in a new issue