aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/acpi/suspend.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@citrix.com>2011-03-07 11:21:11 +0000
committerTim Deegan <Tim.Deegan@citrix.com>2011-03-07 11:21:11 +0000
commit794d4b9e85047aacfe23b852d3a03a8eff920aec (patch)
treed69055821426f9154568cbae37587823f2d23997 /xen/arch/x86/acpi/suspend.c
parent26315747810e1a520daeb5fc0042ab083dead693 (diff)
downloadxen-794d4b9e85047aacfe23b852d3a03a8eff920aec.tar.gz
xen-794d4b9e85047aacfe23b852d3a03a8eff920aec.tar.bz2
xen-794d4b9e85047aacfe23b852d3a03a8eff920aec.zip
x86: add explicit size suffixes to some assembly instructions.
This is needed to compile xen with clang. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/acpi/suspend.c')
-rw-r--r--xen/arch/x86/acpi/suspend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/acpi/suspend.c b/xen/arch/x86/acpi/suspend.c
index 6f2ff5b82b..0291ea8f34 100644
--- a/xen/arch/x86/acpi/suspend.c
+++ b/xen/arch/x86/acpi/suspend.c
@@ -28,7 +28,7 @@ void save_rest_processor_state(void)
#if defined(CONFIG_X86_64)
asm volatile (
- "mov %%ds,(%0); mov %%es,2(%0); mov %%fs,4(%0); mov %%gs,6(%0)"
+ "movw %%ds,(%0); movw %%es,2(%0); movw %%fs,4(%0); movw %%gs,6(%0)"
: : "r" (saved_segs) : "memory" );
rdmsrl(MSR_FS_BASE, saved_fs_base);
rdmsrl(MSR_GS_BASE, saved_gs_base);
@@ -75,7 +75,7 @@ void restore_rest_processor_state(void)
if ( !is_idle_vcpu(curr) )
{
asm volatile (
- "mov (%0),%%ds; mov 2(%0),%%es; mov 4(%0),%%fs"
+ "movw (%0),%%ds; movw 2(%0),%%es; movw 4(%0),%%fs"
: : "r" (saved_segs) : "memory" );
do_set_segment_base(SEGBASE_GS_USER_SEL, saved_segs[3]);
}