projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52826d5
)
Hacky debugging function by setting VESA pixels, sometimes useful
author
H. Peter Anvin
<hpa@zytor.com>
Thu, 31 May 2007 22:40:14 +0000
(15:40 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Thu, 31 May 2007 22:40:14 +0000
(15:40 -0700)
com32/lib/sys/vesa/vesa.h
patch
|
blob
|
history
diff --git
a/com32/lib/sys/vesa/vesa.h
b/com32/lib/sys/vesa/vesa.h
index
55e64b4
..
56c1738
100644
(file)
--- a/
com32/lib/sys/vesa/vesa.h
+++ b/
com32/lib/sys/vesa/vesa.h
@@
-97,4
+97,17
@@
struct vesa_info {
extern struct vesa_info __vesa_info;
+#if 0
+static inline void vesa_debug(uint32_t color, int pos)
+{
+ uint32_t *stp = (uint32_t *)__vesa_info.mi.lfb_ptr;
+ stp[pos*3] = color;
+}
+#else
+static inline void vesa_debug(uint32_t color, int pos)
+{
+ (void)color; (void)pos;
+}
+#endif
+
#endif /* LIB_SYS_VESA_H */