projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6d5a4e
)
vesacon_set_background: Need "volatile" asm
syslinux-3.50-pre20
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 6 Jun 2007 01:48:43 +0000
(18:48 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 6 Jun 2007 01:48:43 +0000
(18:48 -0700)
com32/lib/sys/vesa/background.c
patch
|
blob
|
history
diff --git
a/com32/lib/sys/vesa/background.c
b/com32/lib/sys/vesa/background.c
index
586ee2e
..
0c5a057
100644
(file)
--- 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;