From e9aefeb8b166374862ea9a6a0b1a633645f14455 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Thu, 16 Jun 2005 16:18:30 +0000 Subject: [PATCH] Added the user cloneable area to the Voodoo 3 driver. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13181 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/graphics/tdfx/driver.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/add-ons/kernel/drivers/graphics/tdfx/driver.c b/src/add-ons/kernel/drivers/graphics/tdfx/driver.c index 5608541880..c3710b8732 100644 --- a/src/add-ons/kernel/drivers/graphics/tdfx/driver.c +++ b/src/add-ons/kernel/drivers/graphics/tdfx/driver.c @@ -28,6 +28,11 @@ #include #include +#ifndef __HAIKU__ +# undef B_USER_CLONEABLE_AREA +# define B_USER_CLONEABLE_AREA 0 +#endif + #define DEBUG 1 #if DEBUG > 0 #define ddprintf(a) dprintf a @@ -349,7 +354,7 @@ static status_t map_device(device_info *di) (void*)iobase, iobase_size, B_ANY_KERNEL_ADDRESS, - B_READ_AREA | B_WRITE_AREA, + B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA, (void **)&(si->io)); // return the error if there was some problem @@ -375,7 +380,7 @@ static status_t map_device(device_info *di) (void*)iobase, iobase_size, B_ANY_KERNEL_ADDRESS, - B_READ_AREA | B_WRITE_AREA, + B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA, (void **)&si->io); // return the error if there was some problem @@ -409,7 +414,7 @@ static status_t map_device(device_info *di) #else B_ANY_KERNEL_BLOCK_ADDRESS, #endif - B_READ_AREA + B_WRITE_AREA, + B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA, &(si->framebuffer)); #if defined(__INTEL__) @@ -429,7 +434,7 @@ static status_t map_device(device_info *di) #else B_ANY_KERNEL_ADDRESS, #endif - B_READ_AREA + B_WRITE_AREA, + B_USER_CLONEABLE_AREA | B_READ_AREA | B_WRITE_AREA, &(si->framebuffer)); } #endif