Release 4.11 arch/x86/mm/pgtable_32.c
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/nmi.h>
#include <linux/swap.h>
#include <linux/smp.h>
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/spinlock.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>
#include <asm/fixmap.h>
#include <asm/e820.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
#include <asm/io.h>
unsigned int __VMALLOC_RESERVE = 128 << 20;
/*
* Associate a virtual page frame with a given physical page frame
* and protection flags for that frame.
*/
void set_pte_vaddr(unsigned long vaddr, pte_t pteval)
{
pgd_t *pgd;
pud_t *pud;
pmd_t *pmd;
pte_t *pte;
pgd = swapper_pg_dir + pgd_index(vaddr);
if (pgd_none(*pgd)) {
BUG();
return;
}
pud = pud_offset(pgd, vaddr);
if (pud_none(*pud)) {
BUG();
return;
}
pmd = pmd_offset(pud, vaddr);
if (pmd_none(*pmd)) {
BUG();
return;
}
pte = pte_offset_kernel(pmd, vaddr);
if (!pte_none(pteval))
set_pte_at(&init_mm, vaddr, pte, pteval);
else
pte_clear(&init_mm, vaddr, pte);
/*
* It's enough to flush this one mapping.
* (PGE mappings get flushed as well)
*/
__flush_tlb_one(vaddr);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dan Aloni | 76 | 53.15% | 1 | 11.11% |
Andi Kleen | 28 | 19.58% | 1 | 11.11% |
Jan Beulich | 21 | 14.69% | 2 | 22.22% |
Andrew Morton | 10 | 6.99% | 2 | 22.22% |
Jeremy Fitzhardinge | 6 | 4.20% | 2 | 22.22% |
Dave Hansen | 2 | 1.40% | 1 | 11.11% |
Total | 143 | 100.00% | 9 | 100.00% |
unsigned long __FIXADDR_TOP = 0xfffff000;
EXPORT_SYMBOL(__FIXADDR_TOP);
/*
* vmalloc=size forces the vmalloc area to be exactly 'size'
* bytes. This can be used to increase (or decrease) the
* vmalloc area - the default is 128m.
*/
static int __init parse_vmalloc(char *arg)
{
if (!arg)
return -EINVAL;
/* Add VMALLOC_OFFSET to the parsed value due to vm area guard hole*/
__VMALLOC_RESERVE = memparse(arg, &arg) + VMALLOC_OFFSET;
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Yinghai Lu | 33 | 91.67% | 1 | 50.00% |
Dave Young | 3 | 8.33% | 1 | 50.00% |
Total | 36 | 100.00% | 2 | 100.00% |
early_param("vmalloc", parse_vmalloc);
/*
* reservetop=size reserves a hole at the top of the kernel address space which
* a hypervisor can load into later. Needed for dynamically loaded hypervisors,
* so relocating the fixmap can be done before paging initialization.
*/
static int __init parse_reservetop(char *arg)
{
unsigned long address;
if (!arg)
return -EINVAL;
address = memparse(arg, &arg);
reserve_top_address(address);
early_ioremap_init();
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Yinghai Lu | 42 | 93.33% | 1 | 33.33% |
Liang Li | 2 | 4.44% | 1 | 33.33% |
Mark Salter | 1 | 2.22% | 1 | 33.33% |
Total | 45 | 100.00% | 3 | 100.00% |
early_param("reservetop", parse_reservetop);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dan Aloni | 116 | 37.30% | 1 | 5.26% |
Yinghai Lu | 91 | 29.26% | 1 | 5.26% |
Andi Kleen | 28 | 9.00% | 1 | 5.26% |
Jan Beulich | 21 | 6.75% | 2 | 10.53% |
Jeremy Fitzhardinge | 17 | 5.47% | 3 | 15.79% |
Andrew Morton | 16 | 5.14% | 4 | 21.05% |
Pekka J Enberg | 8 | 2.57% | 1 | 5.26% |
Dave Young | 3 | 0.96% | 1 | 5.26% |
Ingo Molnar | 3 | 0.96% | 1 | 5.26% |
Prarit Bhargava | 3 | 0.96% | 1 | 5.26% |
Liang Li | 2 | 0.64% | 1 | 5.26% |
Dave Hansen | 2 | 0.64% | 1 | 5.26% |
Mark Salter | 1 | 0.32% | 1 | 5.26% |
Total | 311 | 100.00% | 19 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.