DevHelp FreePhys

This service releases physical memory allocated by the DevHlp_AllocPhys.

C
 USHORT APIENTRY DevHelp_FreePhys(PULONG PhysAddr) 

Assembler
 MOV  BX,address_low          ; 32-bit physical address MOV  AX,address_high         ; MOV  DL,DevHlp_FreePhys

CALL [Device_Help] 

C

 * PhysAddr (PULONG) - input : Pointer to the 32 bit physical address of memory to be freed.

Assembler
 MOV  BX,address_low          ; 32-bit physical address MOV  AX,address_high         ; 

C

 * Success Indicator: 0


 * Possible errors:
 * Memory not freed

Assembler
 'C' Clear if memory freed. 'C' Set if memory not freed. 

Remarks
Any memory that the physical device driver allocated by way of the DevHlp_AllocPhys should be released prior to device driver termination. Memory that was not allocated with AllocPhys cannot be freed.

C

 * 1) include "dhcalls.h"

USHORT APIENTRY DevHelp_FreePhys(PULONG PhysAddr) 