diff options
author | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2012-02-23 09:36:51 +0000 |
---|---|---|
committer | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2012-05-22 10:43:45 +0100 |
commit | 97ba5c23b941014951356caf78d04474c55904e4 (patch) | |
tree | 49559026468c4395e2e021bd7c222e4a64d5acdd | |
parent | 9c6b3f10e66ff028093627ddfabb26651e06c603 (diff) |
Bugfix: Calculate l2_desc correctly.
Commit 50201c5 <Bugfix: Calculate l2_desc in Add4KMapping correctly.>
introduced a bug for calculating the l2 descriptor l2_desc. l2_desc has
to be derivered from the l2_pt_addr array rather than the base_pt_addr.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
-rwxr-xr-x | big-little/common/pagetable_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/big-little/common/pagetable_setup.c b/big-little/common/pagetable_setup.c index 0390153..88c8ebd 100755 --- a/big-little/common/pagetable_setup.c +++ b/big-little/common/pagetable_setup.c @@ -176,7 +176,7 @@ static void CreateL3PageTable(four_kb_pt_desc * l3_mapping, unsigned level, l2_desc = &l2_pt_addr[two_mb_index - (512 * one_gb_index)]; } else { l2_pt_addr = &base_pt_addr[one_gb_index << 9]; - l2_desc = &base_pt_addr[two_mb_index - (512 * one_gb_index)]; + l2_desc = &l2_pt_addr[two_mb_index - (512 * one_gb_index)]; } /* Preserve the old attributes */ |