From ee02e647882a4be29e1130bd79904ee79ed6b802 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Tue, 1 Aug 2006 13:45:43 -0700 Subject: Wrap libwfb memory access. Use the READ and WRITE macros to wrap memory accesses that could be in video memory. Add MEMCPY_WRAPPED and MEMSET_WRAPPED macros to wrap memcpy and memset, respectively. --- fb/fbpush.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fb/fbpush.c') diff --git a/fb/fbpush.c b/fb/fbpush.c index 282344d85..bb7bcefef 100644 --- a/fb/fbpush.c +++ b/fb/fbpush.c @@ -58,7 +58,7 @@ fbPushPattern (DrawablePtr pDrawable, w = width; s = src; src += srcStride; - bits = *s++; + bits = READ(s++); xspan = x; while (w) { @@ -73,7 +73,7 @@ fbPushPattern (DrawablePtr pDrawable, bitsMask = FbStipRight (bitsMask, 1); if (!bitsMask) { - bits = *s++; + bits = READ(s++); bitsMask = FbBitsMask(0,1); } } while (bits & bitsMask); @@ -92,7 +92,7 @@ fbPushPattern (DrawablePtr pDrawable, bitsMask = FbStipRight (bitsMask, 1); if (!bitsMask) { - bits = *s++; + bits = READ(s++); bitsMask = FbBitsMask(0,1); } } while (!(bits & bitsMask)); -- cgit v1.2.3