Synopsis:
struct armv_pte {
unsigned short upte_ro;
unsigned short upte_rw;
unsigned short kpte_ro;
unsigned short kpte_rw;
unsigned short mask_nc;
unsigned short l1_pgtable;
unsigned kscn_ro;
unsigned kscn_rw;
unsigned kscn_cb;
};
Description:
The armv_pte structure
describes the MMU page table encodings. Its members include:
- upte_ro
- User-mode read-only pages.
- upte_rw
- User-mode read-write pages.
- kpte_ro
- Kernel-mode read-only pages.
- kpte_rw
- Encoding for kernel-mode read-write pages.
- mask_nc
- Non-cacheable mappings.
- l1_pgtable
- Bits to set for L1 page table entry.
- kscn_ro
- Kernel mode L1 read-only section mapping.
- kscn_rw
- Kernel mode L1 read-write section mapping.
- kscn_cb
- Cacheable section mapping.
Returns:
- >0
- Success.
- -1
- Error