From: Suresh Siddha Date: Wed, 13 Aug 2008 18:38:14 +0000 (-0700) Subject: x86, xsave: clear the user buffer before doing fxsave/xsave X-Git-Tag: v2.6.28-rc1~699^2^8~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed405958057ca6a8c4c9178a7a3b1167fabb45f5;p=pandora-kernel.git x86, xsave: clear the user buffer before doing fxsave/xsave fxsave/xsave instructions will not touch all the bytes in the fxsave/xsave frame. Clear the user buffer before doing fxsave/xsave directly to user buffer during the sigcontext setup. This is essentially needed in the context of xsave(for example, some of the fields in the xsave header are not touched by the xsave and defined as must be zero). This will also present uniform and clean context to the user (from which user can safely do fxrstor/xrstor). Signed-off-by: Suresh Siddha Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed