lkml.org 
[lkml]   [2019]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 05/34] c6x: mm: Add p?d_large() definitions
    Date
    walk_page_range() is going to be allowed to walk page tables other than
    those of user space. For this it needs to know when it has reached a
    'leaf' entry in the page tables. This information is provided by the
    p?d_large() functions/macros.

    For c6x there's no MMU so there's never a large page, so just add stubs.

    CC: Mark Salter <msalter@redhat.com>
    CC: Aurelien Jacquiot <jacquiot.aurelien@gmail.com>
    CC: linux-c6x-dev@linux-c6x.org
    Signed-off-by: Steven Price <steven.price@arm.com>
    ---
    arch/c6x/include/asm/pgtable.h | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/arch/c6x/include/asm/pgtable.h b/arch/c6x/include/asm/pgtable.h
    index ec4db6df5e0d..d532b7df9001 100644
    --- a/arch/c6x/include/asm/pgtable.h
    +++ b/arch/c6x/include/asm/pgtable.h
    @@ -26,6 +26,7 @@
    #define pgd_present(pgd) (1)
    #define pgd_none(pgd) (0)
    #define pgd_bad(pgd) (0)
    +#define pgd_large(pgd) (0)
    #define pgd_clear(pgdp)
    #define kern_addr_valid(addr) (1)

    @@ -34,6 +35,7 @@
    #define pmd_present(x) (pmd_val(x))
    #define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0)
    #define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK)
    +#define pmd_large(pgd) (0)

    #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
    #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-02-27 18:06    [W:2.500 / U:1.188 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site