Skip to content
Snippets Groups Projects
Select Git revision
  • fb054d0d91dbe3c67c25c68cf17bf7e0b7214ca7
  • 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

init.c

Blame
  • init.c 5.73 KiB
    /*
     * OpenRISC idle.c
     *
     * Linux architectural port borrowing liberally from similar works of
     * others.  All original copyrights apply as per the original source
     * declaration.
     *
     * Modifications for the OpenRISC architecture:
     * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
     * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
     *
     *      This program is free software; you can redistribute it and/or
     *      modify it under the terms of the GNU General Public License
     *      as published by the Free Software Foundation; either version
     *      2 of the License, or (at your option) any later version.
     */
    
    #include <linux/signal.h>
    #include <linux/sched.h>
    #include <linux/kernel.h>
    #include <linux/errno.h>
    #include <linux/string.h>
    #include <linux/types.h>
    #include <linux/ptrace.h>
    #include <linux/mman.h>
    #include <linux/mm.h>
    #include <linux/swap.h>
    #include <linux/smp.h>
    #include <linux/memblock.h>
    #include <linux/init.h>
    #include <linux/delay.h>
    #include <linux/blkdev.h>	/* for initrd_* */
    #include <linux/pagemap.h>
    
    #include <asm/segment.h>
    #include <asm/pgalloc.h>
    #include <asm/pgtable.h>
    #include <asm/dma.h>
    #include <asm/io.h>
    #include <asm/tlb.h>
    #include <asm/mmu_context.h>
    #include <asm/kmap_types.h>
    #include <asm/fixmap.h>
    #include <asm/tlbflush.h>
    #include <asm/sections.h>
    
    int mem_init_done;
    
    DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
    
    static void __init zone_sizes_init(void)
    {
    	unsigned long zones_size[MAX_NR_ZONES];
    
    	/* Clear the zone sizes */
    	memset(zones_size, 0, sizeof(zones_size));
    
    	/*
    	 * We use only ZONE_NORMAL
    	 */
    	zones_size[ZONE_NORMAL] = max_low_pfn;
    
    	free_area_init(zones_size);
    }
    
    extern const char _s_kernel_ro[], _e_kernel_ro[];
    
    /*
     * Map all physical memory into kernel's address space.
     *