rem: fb = (uint32 *) si->framebuffer + curadd; for (i=0;i<(1024/4);i++)
add: nm_crtc_depth(BPP8);   fb = ((uint32 *)(((uint32)si->framebuffer) + curadd)); for (i = 0; i < (1024/4); i++)
context: status_t nm_crtc_cursor_init(){	int i;	uint32 * fb;	uint32 curadd, curreg;	/* the cursor is at the end of cardRAM */	curadd = ((si->ps.memory_size * 1024) - si->ps.curmem_size);	/* set cursor bitmap adress on a 1kb boundary, and move the bits around	 * so they get placed at the correct registerbits */	curreg = (((curadd >> 10) & 0x000f) << 8);	curreg |= (((curadd >> 10) & 0x0ff0) >> 4);	/* NM2380 must have an extra bit for > 4Mb: assuming it to be on b12... */	curreg |= ((curadd >> 10) & 0x1000);	if (si->ps.card_type < NM2200)		CR1W(CURADDRESS, curreg);	else		CR1W(22CURADDRESS, curreg);	/*set cursor colour*/	if (si->ps.card_type < NM2200)	{		/* background is black */		CR1W(CURBGCOLOR, 0x00000000);		/* foreground is white */		CR1W(CURFGCOLOR, 0x00ffffff);	}	else	{		/* background is black */		CR1W(22CURBGCOLOR, 0x00000000);		/* foreground is white */		CR1W(22CURFGCOLOR, 0x00ffffff);	}	/*clear cursor*/	fb = (uint32 *) si->framebuffer + curadd;	for (i=0;i<(1024/4);i++)	{		fb[i]=0;	}	/* activate hardware cursor */	nm_crtc_cursor_show();	return B_OK;}