Mind map
5.13 Limit Checking
Map content
5.13 Limit Checking
Used to prevent a process from accessing memory locations outside segments allocated to that process
- in enforced when a process needs to access a memory location in a given segment and checks the location is within the segment
- Limit checking prevents programming errors or malicious programs crashing the OS or overwriting sensitive infomation
- in enforced when a process needs to access a memory location in a given segment and checks the location is within the segment
the limit check compares the value of an offset with the size of the segment
- The size of a segment is stored in the limit field of the segment descriptor and the G (granularity) bit
- G Bit = 0
- If the G bit is clear the size of the segment is the size of the limit field
- The limit is a 20 bit field
- segment cannot exceed 2/20 =1 MB
- The limit is a 20 bit field
- If the G bit is clear the size of the segment is the size of the limit field
- G Bit = 1
- When the G bit is set the size of the segment is multiplied by 2/12
- the size of the segment cannot exceed 2/32 = 4GB
- When the G bit is set the size of the segment is multiplied by 2/12
- G Bit = 0
- The size of a segment is stored in the limit field of the segment descriptor and the G (granularity) bit
Information
- Description
- Mind Map on 5.13 Limit Checking, created by mark.a.staff on 25/03/2015.
- Created by
- mark.a.staff
- Views
- 1
- History
-
- Created by Craig Parker · Mar 25, 2015
- Copied by mark.a.staff · Mar 25, 2015
- Rating