* much space they would need in the first design.
*/
for(j=0; j<nelem(p->mem); j++){
+ if((p->mem[j].bar&1) == 0)
if((p->mem[j].bar&~0x0F) != scr->paddr)
if(p->mem[j].size==512*1024 || p->mem[j].size==16*1024*1024){
mmiobase = p->mem[j].bar & ~0x0F;
* Find a place for the cursor data in display memory.
* Must be on a 1024-byte boundary.
*/
- storage = (scr->gscreen->width*BY2WD*scr->gscreen->r.max.y+1023)/1024;
+ storage = (scr->gscreen->width*sizeof(ulong)*scr->gscreen->r.max.y+1023)/1024;
vgaxo(Crtx, 0x4C, storage>>8);
vgaxo(Crtx, 0x4D, storage & 0xFF);
storage *= 1024;
* above.
*/
scr->blank = s3blank;
- /* hwblank = 1; not known to work well */
switch(id){
case VIRGE: