Skip to content
Snippets Groups Projects
Select Git revision
  • a58e00e7da5f93c096527f5e20ceb2cf6d130cf0
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

jsm_tty.c

Blame
  • init.c 18.52 KiB
    // SPDX-License-Identifier: GPL-2.0-only
    /*
     * Copyright (C) 2012 Regents of the University of California
     * Copyright (C) 2019 Western Digital Corporation or its affiliates.
     */
    
    #include <linux/init.h>
    #include <linux/mm.h>
    #include <linux/memblock.h>
    #include <linux/initrd.h>
    #include <linux/swap.h>
    #include <linux/sizes.h>
    #include <linux/of_fdt.h>
    #include <linux/libfdt.h>
    #include <linux/set_memory.h>
    
    #include <asm/fixmap.h>
    #include <asm/tlbflush.h>
    #include <asm/sections.h>
    #include <asm/soc.h>
    #include <asm/io.h>
    #include <asm/ptdump.h>
    
    #include "../kernel/head.h"
    
    unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)]
    							__page_aligned_bss;
    EXPORT_SYMBOL(empty_zero_page);
    
    extern char _start[];
    #define DTB_EARLY_BASE_VA      PGDIR_SIZE
    void *dtb_early_va __initdata;
    uintptr_t dtb_early_pa __initdata;
    
    struct pt_alloc_ops {
    	pte_t *(*get_pte_virt)(phys_addr_t pa);
    	phys_addr_t (*alloc_pte)(uintptr_t va);
    #ifndef __PAGETABLE_PMD_FOLDED
    	pmd_t *(*get_pmd_virt)(phys_addr_t pa);
    	phys_addr_t (*alloc_pmd)(uintptr_t va);
    #endif
    };
    
    static void __init zone_sizes_init(void)
    {
    	unsigned long max_zone_pfns[MAX_NR_ZONES] = { 0, };
    
    #ifdef CONFIG_ZONE_DMA32
    	max_zone_pfns[ZONE_DMA32] = PFN_DOWN(min(4UL * SZ_1G,
    			(unsigned long) PFN_PHYS(max_low_pfn)));
    #endif
    	max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
    
    	free_area_init(max_zone_pfns);
    }
    
    static void setup_zero_page(void)
    {
    	memset((void *)empty_zero_page, 0, PAGE_SIZE);
    }
    
    #if defined(CONFIG_MMU) && defined(CONFIG_DEBUG_VM)
    static inline void print_mlk(char *name, unsigned long b, unsigned long t)
    {
    	pr_notice("%12s : 0x%08lx - 0x%08lx   (%4ld kB)\n", name, b, t,
    		  (((t) - (b)) >> 10));
    }
    
    static inline void print_mlm(char *name, unsigned long b, unsigned long t)
    {