vesacon_set_background: Need "volatile" asm syslinux-3.50-pre20
authorH. Peter Anvin <hpa@zytor.com>
Wed, 6 Jun 2007 01:48:43 +0000 (18:48 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 6 Jun 2007 01:48:43 +0000 (18:48 -0700)
com32/lib/sys/vesa/background.c

index 586ee2e..0c5a057 100644 (file)
@@ -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;