coreboot/src/cpu/x86
Marshall Dawson fb66e81e6c x86/lapic/secondary.S: Align stack for _secondary_start
At a process _start, the stack is expected to be aligned to a
16-byte boundary.  Upon entry to any function the stack frame
must have the end of any arguments also aligned.  In other words
the value of %esp+4 or %rsp+8 is always a multiple of 16 (1).

Align the stack down inside _secondary_start and preserve proper
alignment for the call to secondary_cpu_init.

Although 4-byte alignment is the minimum requirement for i386,
some AMD platforms use SSE instructions which expect 16-byte.

1) http://wiki.osdev.org/System_V_ABI
   See "Initial Stack and Register State" and "The Stack Frame"
   in the supplements.

BUG=chrome-os-partner:62841664

Change-Id: I72b7a474013e5caf67aedfabeb8d8d2553499b73
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/20537
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-07-20 15:34:21 +00:00
..
16bit cpu/x86: fix spelling mistake 2017-06-12 04:08:34 +02:00
32bit src/cpu/x86: Update/Add license headers to all files 2017-02-22 22:23:11 +01:00
cache src/cpu/x86: Update/Add license headers to all files 2017-02-22 22:23:11 +01:00
lapic x86/lapic/secondary.S: Align stack for _secondary_start 2017-07-20 15:34:21 +00:00
mtrr src/cpu: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:25 +00:00
name cpu/x86/name: Fix undefined behavior 2017-07-03 17:15:28 +00:00
pae Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
smm src/cpu: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:25 +00:00
tsc src/cpu: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:25 +00:00
backup_default_smm.c cpu/x86: remove BACKUP_DEFAULT_SMM_REGION option 2016-05-04 18:51:34 +02:00
car.c arch/x86: Add function to determine if we're currently running from CAR 2017-05-30 22:19:25 +02:00
fpu_enable.inc tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig cpu/x86: allow AP callbacks after MP init 2016-12-08 21:39:43 +01:00
Makefile.inc arch/x86: remove CAR global migration when postcar stage is used 2017-04-08 23:22:02 +02:00
mirror_payload.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
mp_init.c Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
sipi_vector.S cpu/x86/smm: allow SSE instructions in SMM modules 2017-06-27 16:14:15 +00:00
sse_enable.inc tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00