From 35cb26904488947c9950bbc10dfac3f69b25510b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 5 Jun 2007 18:48:43 -0700 Subject: vesacon_set_background: Need "volatile" asm --- com32/lib/sys/vesa/background.c | 8 ++++---- 1 file 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; -- cgit v1.2.3