Changeset 15680 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 19, 2008 11:06:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r15667 r15680 1188 1188 # ifdef IN_RING0 1189 1189 /* If all planes are accessible, then map the page to the frame buffer and make it writable. */ 1190 if ((s->sr[2] & 3) == 3) 1190 if ( (s->sr[2] & 3) == 3 1191 && !vga_is_dirty(s, addr)) 1191 1192 { 1192 1193 /** @todo only allow read access (doesn't work now) */ 1193 1194 IOMMMIOModifyPage(PDMDevHlpGetVM(s->CTX_SUFF(pDevIns)), GCPhys, s->GCPhysVRAM + addr, X86_PTE_RW|X86_PTE_P); 1195 /* Set as dirty as write accesses won't be noticed now. */ 1194 1196 vga_set_dirty(s, addr); 1195 1197 s->fRemappedVGA = true; … … 1317 1319 s->vram_ptr[addr] = val; 1318 1320 #else /* VBOX */ 1319 # if def IN_RING01321 # ifndef IN_RC 1320 1322 /* If all planes are accessible, then map the page to the frame buffer and make it writable. */ 1321 if ((s->sr[2] & 3) == 3) 1323 if ( (s->sr[2] & 3) == 3 1324 && !vga_is_dirty(s, addr)) 1322 1325 { 1323 1326 IOMMMIOModifyPage(PDMDevHlpGetVM(s->CTX_SUFF(pDevIns)), GCPhys, s->GCPhysVRAM + addr, X86_PTE_RW | X86_PTE_P); 1324 1327 s->fRemappedVGA = true; 1325 1328 } 1326 # endif /* IN_R ING0*/1329 # endif /* IN_RC */ 1327 1330 1328 1331 VERIFY_VRAM_WRITE_OFF_RETURN(s, addr);
Note:
See TracChangeset
for help on using the changeset viewer.