| [Overview][Constants][Types][Procedures and functions][Variables][Index] | 
Set descriptor limit
Source position: go32.pp line 94
function set_segment_limit(  | 
d: Word;  | 
s: dword  | 
):Boolean;  | 
Sets the limit of a descriptor.
Parameters:
Return values: Returns True if successful, else False.
| Remark: | The new limit specified must be the byte length of the segment - 1. Segment limits bigger than or equal to 1MB must be page aligned, they must have the lower 12 bits set. | 
For an example, see allocate_ldt_descriptors.
Check the int31error variable.
  | 
Allocate a number of descriptors  | 
|
  | 
Set descriptor's base address  | 
|
  | 
Return segment limits from descriptor  | 
|
  | 
Set descriptor limit  |