Changeset f64fe6e in mainline


Ignore:
Timestamp:
2013-10-07T19:57:56Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80d9d83
Parents:
8c34acf
Message:

Fix
1) kernel non-identity mapping size
2) newly added PTE permissions

Location:
kernel/arch/sparc32/include/arch/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/mm/frame.h

    r8c34acf rf64fe6e  
    2727 */
    2828
    29 /** @addtogroup abs32lemm
     29/** @addtogroup sparc32mm
    3030 * @{
    3131 */
  • kernel/arch/sparc32/include/arch/mm/km.h

    r8c34acf rf64fe6e  
    4242
    4343#define KM_SPARC32_NON_IDENTITY_START   UINT32_C(0xf0000000)
    44 #define KM_SPARC32_NON_IDENTITY_SIZE    UINT32_C(0xff000000)
     44#define KM_SPARC32_NON_IDENTITY_SIZE    UINT32_C(0xff00000)
    4545
    4646extern void km_identity_arch_init(void);
  • kernel/arch/sparc32/include/arch/mm/page.h

    r8c34acf rf64fe6e  
    226226       
    227227        if (flags & PAGE_USER) {
    228                 if (flags & PAGE_READ)
    229                         p->acc = PTE_ACC_USER_RO_KERNEL_RW;
    230                 if (flags & PAGE_WRITE)
    231                         p->acc = PTE_ACC_USER_RW_KERNEL_RW;
     228                if (flags & PAGE_EXEC) {
     229                        if (flags & PAGE_READ)
     230                                p->acc = PTE_ACC_USER_RX_KERNEL_RX;
     231                        if (flags & PAGE_WRITE)
     232                                p->acc = PTE_ACC_USER_RWX_KERNEL_RWX;
     233                } else {
     234                        if (flags & PAGE_READ)
     235                                p->acc = PTE_ACC_USER_RO_KERNEL_RW;
     236                        if (flags & PAGE_WRITE)
     237                                p->acc = PTE_ACC_USER_RW_KERNEL_RW;
     238                }
    232239        }
    233240
Note: See TracChangeset for help on using the changeset viewer.