/**************************************************************************** REMARKS: Map a real mode pointer to a protected mode pointer. ****************************************************************************/ void * PMAPI PM_mapRealPointer( uint r_seg, uint r_off) { // TODO: This function maps a real mode memory pointer into the // calling processes address space as a 32-bit near pointer. If // you do not support BIOS access, simply return NULL here. if (!zeroPtr) zeroPtr = PM_mapPhysicalAddr(0,0xFFFFF); return (void*)(zeroPtr + MK_PHYS(r_seg,r_off)); }
/**************************************************************************** REMARKS: Map a real mode pointer to a protected mode pointer. ****************************************************************************/ void * PMAPI PM_mapRealPointer( uint r_seg, uint r_off) { return lowMem + MK_PHYS(r_seg,r_off); }