volatile pointers where possibly needed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16113 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen 2006-01-27 21:06:26 +00:00
parent eab3aa0c2d
commit 12676c3a1d
2 changed files with 6 additions and 6 deletions

View File

@ -512,7 +512,7 @@ status_t gx00_crtc_cursor_init()
if (si->ps.card_type >= G100)
{
uint32 * fb;
vuint32 * fb;
/* cursor bitmap will be stored at the start of the framebuffer on >= G100 */
const uint32 curadd = 0;
@ -535,7 +535,7 @@ status_t gx00_crtc_cursor_init()
DXIW(CURCOL2BLUE,0);
/*clear cursor*/
fb = (uint32 *) si->framebuffer + curadd;
fb = (vuint32 *) si->framebuffer + curadd;
for (i=0;i<(1024/4);i++)
{
fb[i]=0;
@ -610,10 +610,10 @@ status_t gx00_crtc_cursor_define(uint8* andMask,uint8* xorMask)
if(si->ps.card_type >= G100)
{
uint8 * cursor;
vuint8 * cursor;
/*get a pointer to the cursor*/
cursor = (uint8*) si->framebuffer;
cursor = (vuint8*) si->framebuffer;
/*draw the cursor*/
for(y=0;y<16;y++)

View File

@ -152,7 +152,7 @@ static status_t test_ram()
for (offset = 0, value = 0x55aa55aa; offset < 256; offset++)
{
/* write testpattern to cardRAM */
((uint32 *)si->fbc.frame_buffer)[offset] = value;
((vuint32 *)si->fbc.frame_buffer)[offset] = value;
/* toggle testpattern */
value = 0xffffffff - value;
}
@ -160,7 +160,7 @@ static status_t test_ram()
for (offset = 0, value = 0x55aa55aa; offset < 256; offset++)
{
/* readback and verify testpattern from cardRAM */
if (((uint32 *)si->fbc.frame_buffer)[offset] != value) result = B_ERROR;
if (((vuint32 *)si->fbc.frame_buffer)[offset] != value) result = B_ERROR;
/* toggle testpattern */
value = 0xffffffff - value;
}