MCPcopy Create free account
hub / github.com/NetHack/NetHack / vesa_map_frame_buffer

Function vesa_map_frame_buffer

sys/msdos/vidvesa.c:257–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static unsigned
258vesa_map_frame_buffer(unsigned phys_addr, unsigned size)
259{
260 __dpmi_meminfo info;
261 int rc;
262
263 info.handle = 0;
264 info.address = phys_addr;
265 info.size = size;
266 rc = __dpmi_physical_address_mapping(&info);
267
268 return rc == 0 ? info.address : 0;
269}
270
271/* Set the memory window and return the offset */
272static unsigned long

Callers 1

vesa_detectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected