Author: andrew
Date: Tue Dec  8 15:41:18 2020
New Revision: 368444
URL: https://svnweb.freebsd.org/changeset/base/368444

Log:
  Free the arm64 bootparams memory after initarm
  
  This is only needed in initarm, we can return this memory to the stack
  used by mi_startup.
  
  Sponsored by: Innivate UK

Modified:
  head/sys/arm64/arm64/locore.S

Modified: head/sys/arm64/arm64/locore.S
==============================================================================
--- head/sys/arm64/arm64/locore.S       Tue Dec  8 15:09:42 2020        
(r368443)
+++ head/sys/arm64/arm64/locore.S       Tue Dec  8 15:41:18 2020        
(r368444)
@@ -173,6 +173,8 @@ virtdone:
        mov     fp, #0
        /* Branch to C code */
        bl      initarm
+       /* We are done with the boot params */
+       add     sp, sp, #BOOTPARAMS_SIZE
        bl      mi_startup
 
        /* We should not get here */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to