[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Map segment address to descriptor
Source position: go32.pp line 90
function segment_to_descriptor( |
seg: Word |
):Word; |
Maps a real mode segment (paragraph) address onto an descriptor that can be used by a protected mode program to access the same memory.
Parameters:
Return values: Descriptor to real mode segment address.
Remark: | The returned descriptors limit will be set to 64 kB. Multiple calls to this function with the same segment address will return the same selector. Descriptors created by this function can never be modified or freed. Programs which need to examine various real mode addresses using the same selector should use the function allocate_ldt_descriptors and change the base address as necessary. |
For an example, see seg_fillchar.
Check the int31error variable.
|
Allocate a number of descriptors |
|
|
Free a descriptor |
|
|
Set descriptor's base address |