Release 4.10 arch/mips/mti-malta/malta-memory.c
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* PROM library functions for acquiring/using memory descriptors given to
* us from the YAMON.
*
* Copyright (C) 1999,2000,2012 MIPS Technologies, Inc.
* All rights reserved.
* Authors: Carsten Langgaard <carstenl@mips.com>
* Steven J. Hill <sjhill@mips.com>
*/
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/string.h>
#include <asm/bootinfo.h>
#include <asm/cdmm.h>
#include <asm/maar.h>
#include <asm/sections.h>
#include <asm/fw/fw.h>
/* determined physical memory size, not overridden by command line args */
unsigned long physical_memsize = 0L;
static void free_init_pages_eva_malta(void *begin, void *end)
{
free_init_pages("unused kernel", __pa_symbol((unsigned long *)begin),
__pa_symbol((unsigned long *)end));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
paul burton | paul burton | 38 | 97.44% | 1 | 50.00% |
linus torvalds | linus torvalds | 1 | 2.56% | 1 | 50.00% |
| Total | 39 | 100.00% | 2 | 100.00% |
void __init fw_meminit(void)
{
bool eva = IS_ENABLED(CONFIG_EVA);
free_init_pages_eva = eva ? free_init_pages_eva_malta : NULL;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
paul burton | paul burton | 18 | 75.00% | 1 | 33.33% |
linus torvalds | linus torvalds | 5 | 20.83% | 1 | 33.33% |
masahiro yamada | masahiro yamada | 1 | 4.17% | 1 | 33.33% |
| Total | 24 | 100.00% | 3 | 100.00% |
void __init prom_free_prom_memory(void)
{
unsigned long addr;
int i;
for (i = 0; i < boot_mem_map.nr_map; i++) {
if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA)
continue;
addr = boot_mem_map.map[i].addr;
free_init_pages("YAMON memory",
addr, addr + boot_mem_map.map[i].size);
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
atsushi nemoto | atsushi nemoto | 66 | 88.00% | 2 | 40.00% |
linus torvalds | linus torvalds | 7 | 9.33% | 1 | 20.00% |
steven j. hill | steven j. hill | 1 | 1.33% | 1 | 20.00% |
andrew morton | andrew morton | 1 | 1.33% | 1 | 20.00% |
| Total | 75 | 100.00% | 5 | 100.00% |
phys_addr_t mips_cdmm_phys_base(void)
{
/* This address is "typically unused" */
return 0x1fc10000;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
james hogan | james hogan | 11 | 100.00% | 1 | 100.00% |
| Total | 11 | 100.00% | 1 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
atsushi nemoto | atsushi nemoto | 66 | 36.46% | 2 | 14.29% |
paul burton | paul burton | 59 | 32.60% | 2 | 14.29% |
linus torvalds | linus torvalds | 24 | 13.26% | 1 | 7.14% |
james hogan | james hogan | 14 | 7.73% | 1 | 7.14% |
ralf baechle | ralf baechle | 13 | 7.18% | 4 | 28.57% |
steven j. hill | steven j. hill | 3 | 1.66% | 2 | 14.29% |
masahiro yamada | masahiro yamada | 1 | 0.55% | 1 | 7.14% |
andrew morton | andrew morton | 1 | 0.55% | 1 | 7.14% |
| Total | 181 | 100.00% | 14 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.