diff options
author | John David Anglin <dave.anglin@bell.net> | 2013-01-13 17:04:18 -0500 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-02-20 16:46:46 -0500 |
commit | 1c4c6597b67f9986a09b34deb337a8b14f4adf3a (patch) | |
tree | 6916ece9d3ff059721fbfb3a261c9caa3358b44c /arch/parisc | |
parent | 0e39718b988b84860a6c291a2c82c9cb75e3b8a9 (diff) |
parisc: Fix comment describing setup of access rights in entry.S
This comment describes incredibly subtle code, so it should be right!
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/entry.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S index eb7850b46c25..7c9648919c91 100644 --- a/arch/parisc/kernel/entry.S +++ b/arch/parisc/kernel/entry.S | |||
@@ -483,7 +483,7 @@ | |||
483 | * B <-> _PAGE_DMB (memory break) | 483 | * B <-> _PAGE_DMB (memory break) |
484 | * | 484 | * |
485 | * Then incredible subtlety: The access rights are | 485 | * Then incredible subtlety: The access rights are |
486 | * _PAGE_GATEWAY _PAGE_EXEC _PAGE_READ | 486 | * _PAGE_GATEWAY, _PAGE_EXEC and _PAGE_WRITE |
487 | * See 3-14 of the parisc 2.0 manual | 487 | * See 3-14 of the parisc 2.0 manual |
488 | * | 488 | * |
489 | * Finally, _PAGE_READ goes in the top bit of PL1 (so we | 489 | * Finally, _PAGE_READ goes in the top bit of PL1 (so we |
@@ -493,7 +493,7 @@ | |||
493 | 493 | ||
494 | /* PAGE_USER indicates the page can be read with user privileges, | 494 | /* PAGE_USER indicates the page can be read with user privileges, |
495 | * so deposit X1|11 to PL1|PL2 (remember the upper bit of PL1 | 495 | * so deposit X1|11 to PL1|PL2 (remember the upper bit of PL1 |
496 | * contains _PAGE_READ */ | 496 | * contains _PAGE_READ) */ |
497 | extrd,u,*= \pte,_PAGE_USER_BIT+32,1,%r0 | 497 | extrd,u,*= \pte,_PAGE_USER_BIT+32,1,%r0 |
498 | depdi 7,11,3,\prot | 498 | depdi 7,11,3,\prot |
499 | /* If we're a gateway page, drop PL2 back to zero for promotion | 499 | /* If we're a gateway page, drop PL2 back to zero for promotion |