0% found this document useful (0 votes)
43 views3 pages

The Segmentation and Paging: Rawa'A Abed

1. The EAX register contains the value 44332211. The processor is in protected mode with paging enabled. 2. Executing the instruction ADD [7530], EAX would result in a physical address of 5640F530 after taking the linear address and applying segmentation and paging. 3. Some memory locations contain descriptor information. The bits of the access byte for each descriptor are explained to understand its properties and permissions.

Uploaded by

gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views3 pages

The Segmentation and Paging: Rawa'A Abed

1. The EAX register contains the value 44332211. The processor is in protected mode with paging enabled. 2. Executing the instruction ADD [7530], EAX would result in a physical address of 5640F530 after taking the linear address and applying segmentation and paging. 3. Some memory locations contain descriptor information. The bits of the access byte for each descriptor are explained to understand its properties and permissions.

Uploaded by

gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 3

The segmentation and

paging
RAWA'A ABED
The value of the EAX = 44332211, the processor work in the protected mode, and the value of the PG in CR0 is 1 , the GDT
is 54321000 H , the value of the LDTR is 7700 H and the value of DS is 321D H

1) what is the contents of the physical address after execute the instruction

ADD [ 7530] , EAX

2) Each time you get a descriptor, explain the bits of it’s access byte

( you have contents of some memory locations, you can use them as required )

43213210 FF FF 00 02 02 92 00 00 – FF FF 00 80 40 FE 00 56
54328700 FF FF 00 00 21 82 00 43 – FF FF 00 00 22 A2 00 00
12345560 00 60 02 00 61 20 06 88 – 00 30 40 00 00 33 60 00
88062030 00 FF 60 20 00 00 60 00 – 00 00 20 00 27 00 33 44
44330530 11 22 33 44 55 66 77 88 – 88 77 66 55 44 33 22 11
PHASICAL
PAGING MEMOY
DIR PAGE OFFSE 22 ML
Linear 44330533 44
0101011001 0000001111 T 530 FFFFFFFF
address 44330532 66
×4 ×4 44330531 88
•EAX
First
The = 44332211,
Index = 0011
convert
end of theGDT
the DSGDT
0010 isbinary
=0001
intoGDT 54321000
1baseDS =H321D
+ limit , LDTR is 7700 H ,DS is 321D H 44330530
• ADD
•DS [ 7530]
Since
= 0011
Descriptor TI, EAX
theaddress
0010 =0001 1564
1 = 54328700 54321000 + FFFF03C
1= 01 530 44330000 54330FFF
• •We GDTbase
Fromtake
thecontain
question firstgo8=to
= 54321000
ofwe H 54330FFF
byte in the location
memory memory that
location
have same desc. address PF 4KB
• •54328700
Descriptor
43213218 FFaddress
FF 00 00= GDT
02 21
02 8292base + –LDTR
00 43
00 FF FF 00 00
80 22
40 A2
FE 00 00
56 PF -1,048,576 43 00 54328707
Index= 0011 0010 0001 RPL TI==1= 01
154321000
so
soit’s + 7700
it’sinlevel
the LDT
2 82 21
00 00
= 54328700 FF FF
12345FFF PF 54328700
PF -1 54321000
• Seg.
LDTbase
Base ==56408000
43210000 8806200
• Add
Index
[7530]
= 0011
,EAX0010 0001 1 8806203F 4321FFFF
12345568
• Physical
Offset =address
index *= 8seg.base + PDE
7530 880620 61 PTE 44330027 4321321F
• *8 8806203C 56 00
= 0011 =001056408000
0001 1000
+ 7530
12345564 FE *8 40
• = 3218 = 5640F530 80 00
12345000 + offset 88062000
• Since
Descriptor
PG =0address
then = LDTbase PT 4KB FF FF
• Physical address = linear=address
43210000 PDT 4KB
= 5640F530
+ 3218 43213218
PT 43210000
If PG =1 then *8 = 43213218 -1024
CR3 12345 00000000
32bit PDBA 20bit
PT
PT -1

You might also like