The branch main has been updated by jhibbits:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=882821b78faecaffdecac8fdcd943ee2e1053ee7

commit 882821b78faecaffdecac8fdcd943ee2e1053ee7
Author:     Justin Hibbits <[email protected]>
AuthorDate: 2025-12-01 16:50:30 +0000
Commit:     Justin Hibbits <[email protected]>
CommitDate: 2025-12-01 16:53:00 +0000

    kexec: Change shutdown handler priority
    
    The kexec shutdown handler should run after everything else, but before
    the other platform shutdown handlers.  With (SHUTDOWN_PRI_DEFAULT - 150)
    priority it would run before anything else, including all the device
    shutdown handlers.  Change to (SHUTDOWN_PRI_LAST - 150) where it
    belongs.
    
    Sponsored by:   Hewlett Packard Enterprise
---
 sys/kern/kern_kexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_kexec.c b/sys/kern/kern_kexec.c
index 2efea7dcf9a7..86ee9da9a606 100644
--- a/sys/kern/kern_kexec.c
+++ b/sys/kern/kern_kexec.c
@@ -314,7 +314,7 @@ kern_kexec_load(struct thread *td, u_long entry, u_long 
nseg,
                if (kexec_reboot_handler == NULL)
                        kexec_reboot_handler =
                            EVENTHANDLER_REGISTER(shutdown_final, kexec_reboot, 
NULL,
-                           SHUTDOWN_PRI_DEFAULT - 150);
+                           SHUTDOWN_PRI_LAST - 150);
        } else {
                if (kexec_reboot_handler != NULL)
                        EVENTHANDLER_DEREGISTER(shutdown_final, 
kexec_reboot_handler);

Reply via email to