Subject: Re: amd64 alignment problem - gcc's fault or libpthread's?
To: Frank van der Linden <fvdl@NetBSD.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: port-amd64
Date: 02/29/2004 16:36:06
This is a multipart MIME message.
--==_Exmh_267138172960
Content-Type: text/plain; charset=us-ascii
M.Drochner@fz-juelich.de said:
> The appended patch
here is it...
--==_Exmh_267138172960
Content-Type: text/plain ; name="putds.txt"; charset=us-ascii
Content-Description: putds.txt
Content-Disposition: attachment; filename="putds.txt"
--- locore.S.~1.10.~ Thu Feb 19 18:18:38 2004
+++ locore.S Sun Feb 29 15:52:49 2004
@@ -1232,6 +1232,8 @@ syscall_return:
addq $8,%rsp
popq %r11 /* flags as set by sysret insn */
movq (%rsp),%rsp
+ movw $(LSEL(LUDATA_SEL, SEL_UPL)),%r10
+ movw %r10,%ds
sysretq
#ifdef DIAGNOSTIC
--==_Exmh_267138172960--