summaryrefslogtreecommitdiffstats
path: root/sys/amd64/ia32/ia32_exception.S
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2006-12-17 06:48:40 +0000
committerkmacy <kmacy@FreeBSD.org>2006-12-17 06:48:40 +0000
commit20611107850a6c1de42880a35271d3a18a4b8811 (patch)
tree4a10bc4aba837d9f1be450b197838da90973dd1b /sys/amd64/ia32/ia32_exception.S
parentee539b99dcacb73703a09f64d8ada227bb88a165 (diff)
downloadFreeBSD-src-20611107850a6c1de42880a35271d3a18a4b8811.zip
FreeBSD-src-20611107850a6c1de42880a35271d3a18a4b8811.tar.gz
Newer versions of gcc don't support treating structures passed by value
as if they were really passed by reference. Specifically, the dead stores elimination pass in the GCC 4.1 optimiser breaks the non-compliant behavior on which FreeBSD relied. This change brings FreeBSD up to date by switching trap frames to being explicitly passed by reference. Reviewed by: kan Tested by: kan
Diffstat (limited to 'sys/amd64/ia32/ia32_exception.S')
-rw-r--r--sys/amd64/ia32/ia32_exception.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/ia32/ia32_exception.S b/sys/amd64/ia32/ia32_exception.S
index c65634e..4820f53 100644
--- a/sys/amd64/ia32/ia32_exception.S
+++ b/sys/amd64/ia32/ia32_exception.S
@@ -61,6 +61,7 @@ IDTVEC(int0x80_syscall)
movq %r14,TF_R14(%rsp)
movq %r15,TF_R15(%rsp)
FAKE_MCOUNT(TF_RIP(%rsp))
+ movq %rsp, %rdi
call ia32_syscall
MEXITCOUNT
jmp doreti
OpenPOWER on IntegriCloud