Fix units used in page table address calculation

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2908 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-09-01 21:28:14 +00:00
parent cd9c48384b
commit 51c9dcb290
+10 -3
View File
@@ -361,10 +361,17 @@ On-Demand Paging
... ...
The locked region is initially unmapped. But the data region and page table The locked region is initially unmapped. But the data region and page table
regions must be mapped in a similar manner. regions must be mapped in a similar manner. Those
data offset = ((0x00094000 >> 10) << 2) = 0x00000940 Data:
L1 offset = ((0x0009c000 >> 10) << 2) = 0x000009c0 Virtual address = 0x11094000 Offset = 0x00064000
Physical address = 0x1104c000
L2 offset = ((0x00094000 >> 10) << 2) = 0x00000940
Page table:
Virtual address = 0x1109c000 Offset = 0x0009c000
Physical address = 0x11054000
L2 offset = ((0x0009c000 >> 10) << 2) = 0x000009c0
Build Sequence: Build Sequence:
--------------- ---------------