mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
alpha: describe the PTE read and write enable bits
The comments on _PAGE_KRE and _PAGE_URE said only "xxx". Describe the four enable bits as the Alpha Linux PTE defines them, in Table 22-3 of the Alpha Architecture Reference Manual: kernel and user read enable in bits 8 and 9, kernel and user write enable in bits 12 and 13, with bits <11:10> and <15:14> reserved. There are only two processor modes, user and kernel (section 22.5.1). Linux uses the read enables as its accessed bit and the write enables as its dirty bit, so say which of __ACCESS_BITS and __DIRTY_BITS each one belongs to. The names differ from what the hardware calls those bits on the 21264. Its PALcode loads the PTE unchanged into DTB_PTE (21264/EV67 Hardware Reference Manual, section 6.9), where bits 9 and 13 are the Executive read and write enables (Figure 5-27), Executive being mode 1 of the four the processor implements (Table 5-5). That is a detail below the PALcode interface, and it is also the layout of the OpenVMS PTE in Table 11-2, which is not the one Linux uses. No functional change. Suggested-by: Magnus Lindholm <linmag7@gmail.com> Signed-off-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Magnus Lindholm <linmag7@gmail.com> Link: https://lore.kernel.org/r/20261007-alpha-hugepages-v2-3-8e108af2d961@gmail.com Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
This commit is contained in:
parent
4bef20bbb9
commit
5cea79aacf
|
|
@ -65,10 +65,10 @@ struct vm_area_struct;
|
|||
#define _PAGE_FOW 0x0004 /* used for page protection (fault on write) */
|
||||
#define _PAGE_FOE 0x0008 /* used for page protection (fault on exec) */
|
||||
#define _PAGE_ASM 0x0010
|
||||
#define _PAGE_KRE 0x0100 /* xxx - see below on the "accessed" bit */
|
||||
#define _PAGE_URE 0x0200 /* xxx */
|
||||
#define _PAGE_KWE 0x1000 /* used to do the dirty bit in software */
|
||||
#define _PAGE_UWE 0x2000 /* used to do the dirty bit in software */
|
||||
#define _PAGE_KRE 0x0100 /* kernel read enable, in __ACCESS_BITS */
|
||||
#define _PAGE_URE 0x0200 /* user read enable, in __ACCESS_BITS */
|
||||
#define _PAGE_KWE 0x1000 /* kernel write enable, in __DIRTY_BITS */
|
||||
#define _PAGE_UWE 0x2000 /* user write enable, in __DIRTY_BITS */
|
||||
|
||||
/* .. and these are ours ... */
|
||||
#define _PAGE_DIRTY 0x20000
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user