aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/vesa/background.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-06-05 18:48:43 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-06-05 18:48:43 -0700
commit35cb26904488947c9950bbc10dfac3f69b25510b (patch)
treea653bd002e4b6314ab7cd5cf7f323bac34e65b1a /com32/lib/sys/vesa/background.c
parentf6d5a4edb7bd591190973be3b681a4f944bdd265 (diff)
downloadsyslinux-35cb26904488947c9950bbc10dfac3f69b25510b.tar.gz
syslinux-35cb26904488947c9950bbc10dfac3f69b25510b.tar.xz
syslinux-35cb26904488947c9950bbc10dfac3f69b25510b.zip
vesacon_set_background: Need "volatile" asmsyslinux-3.50-pre20
Diffstat (limited to 'com32/lib/sys/vesa/background.c')
-rw-r--r--com32/lib/sys/vesa/background.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/com32/lib/sys/vesa/background.c b/com32/lib/sys/vesa/background.c
index 586ee2ea..0c5a0571 100644
--- a/com32/lib/sys/vesa/background.c
+++ b/com32/lib/sys/vesa/background.c
@@ -261,10 +261,10 @@ int vesacon_set_background(unsigned int rgb)
if (__vesacon_pixel_format == PXF_NONE)
return 0; /* Not in graphics mode */
- asm("cld; rep; stosl"
- : "+D" (bgptr), "+c" (count)
- : "a" (rgb)
- : "memory");
+ asm volatile("cld; rep; stosl"
+ : "+D" (bgptr), "+c" (count)
+ : "a" (rgb)
+ : "memory");
draw_background();
return 0;