From 57560de1fa32422d75f715c9610cee7edb77e27a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 31 May 2007 15:40:14 -0700 Subject: [PATCH] Hacky debugging function by setting VESA pixels, sometimes useful --- com32/lib/sys/vesa/vesa.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/com32/lib/sys/vesa/vesa.h b/com32/lib/sys/vesa/vesa.h index 55e64b4..56c1738 100644 --- 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 */ -- 2.7.4