VirtualBox

Changeset 102908 in vbox for trunk/src


Ignore:
Timestamp:
Jan 16, 2024 11:45:05 PM (13 months ago)
Author:
vboxsync
Message:

Devices/EFI/Firmware: Correctly align MP_CPU_EXCHANGE_INFO for application CPUs. This causes trouble on ARM and possibly also recent linux intel hosts. bugref:10547

Location:
trunk/src/VBox/Devices/EFI/Firmware/UefiCpuPkg/Library/MpInitLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm

    r101291 r102908  
    7070; memory.
    7171;
     72ALIGN 16, int3      ; VBOX: Seems the MP_CPU_EXCHANGE_INFO structure is placed here in low memory.
     73                    ; VBOX: So, to ensure that it's properly aligned wrt 'lock inc' and 'lock xadd'
     74                    ; VBOX: below, we must align this entry point. @bugref 10547.
    7275BITS 32
    7376Flat32Start:                                   ; protected mode entry point
  • trunk/src/VBox/Devices/EFI/Firmware/UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm

    r101291 r102908  
    7979; This is required if NX is enabled for EfiBootServicesCode of memory.
    8080;
     81ALIGN 16, int3      ; VBOX: Seems the MP_CPU_EXCHANGE_INFO structure is placed here in low memory.
     82                    ; VBOX: So, to ensure that it's properly aligned wrt 'lock inc' and 'lock xadd'
     83                    ; VBOX: below, we must align this entry point. @bugref 10547.
    8184BITS 32
    8285Flat32Start:                                   ; protected mode entry point
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette