vdso.c (b7e56edba4b02f2079042c326a8cd72a44635817) vdso.c (95f72d1ed41a66f1c1c29c24d479de81a0bea36f)
1
2/*
3 * Copyright (C) 2004 Benjamin Herrenschmidt, IBM Corp.
4 * <benh@kernel.crashing.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 8 unchanged lines hidden (view full) ---

17#include <linux/smp.h>
18#include <linux/stddef.h>
19#include <linux/unistd.h>
20#include <linux/slab.h>
21#include <linux/user.h>
22#include <linux/elf.h>
23#include <linux/security.h>
24#include <linux/bootmem.h>
1
2/*
3 * Copyright (C) 2004 Benjamin Herrenschmidt, IBM Corp.
4 * <benh@kernel.crashing.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 8 unchanged lines hidden (view full) ---

17#include <linux/smp.h>
18#include <linux/stddef.h>
19#include <linux/unistd.h>
20#include <linux/slab.h>
21#include <linux/user.h>
22#include <linux/elf.h>
23#include <linux/security.h>
24#include <linux/bootmem.h>
25#include <linux/lmb.h>
25#include <linux/memblock.h>
26
27#include <asm/pgtable.h>
28#include <asm/system.h>
29#include <asm/processor.h>
30#include <asm/mmu.h>
31#include <asm/mmu_context.h>
32#include <asm/prom.h>
33#include <asm/machdep.h>

--- 695 unchanged lines hidden (view full) ---

729 vdso_data->processor = mfspr(SPRN_PVR);
730 /*
731 * Fake the old platform number for pSeries and iSeries and add
732 * in LPAR bit if necessary
733 */
734 vdso_data->platform = machine_is(iseries) ? 0x200 : 0x100;
735 if (firmware_has_feature(FW_FEATURE_LPAR))
736 vdso_data->platform |= 1;
26
27#include <asm/pgtable.h>
28#include <asm/system.h>
29#include <asm/processor.h>
30#include <asm/mmu.h>
31#include <asm/mmu_context.h>
32#include <asm/prom.h>
33#include <asm/machdep.h>

--- 695 unchanged lines hidden (view full) ---

729 vdso_data->processor = mfspr(SPRN_PVR);
730 /*
731 * Fake the old platform number for pSeries and iSeries and add
732 * in LPAR bit if necessary
733 */
734 vdso_data->platform = machine_is(iseries) ? 0x200 : 0x100;
735 if (firmware_has_feature(FW_FEATURE_LPAR))
736 vdso_data->platform |= 1;
737 vdso_data->physicalMemorySize = lmb_phys_mem_size();
737 vdso_data->physicalMemorySize = memblock_phys_mem_size();
738 vdso_data->dcache_size = ppc64_caches.dsize;
739 vdso_data->dcache_line_size = ppc64_caches.dline_size;
740 vdso_data->icache_size = ppc64_caches.isize;
741 vdso_data->icache_line_size = ppc64_caches.iline_size;
742
743 /* XXXOJN: Blocks should be added to ppc64_caches and used instead */
744 vdso_data->dcache_block_size = ppc64_caches.dline_size;
745 vdso_data->icache_block_size = ppc64_caches.iline_size;

--- 92 unchanged lines hidden ---
738 vdso_data->dcache_size = ppc64_caches.dsize;
739 vdso_data->dcache_line_size = ppc64_caches.dline_size;
740 vdso_data->icache_size = ppc64_caches.isize;
741 vdso_data->icache_line_size = ppc64_caches.iline_size;
742
743 /* XXXOJN: Blocks should be added to ppc64_caches and used instead */
744 vdso_data->dcache_block_size = ppc64_caches.dline_size;
745 vdso_data->icache_block_size = ppc64_caches.iline_size;

--- 92 unchanged lines hidden ---