cpu-probe.c (8267e78f020a8de2752754c42ec1d56e92431477) cpu-probe.c (ec7a93188a75b57b9f704db6862e7137f01aa80b)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Processor capabilities determination functions.
4 *
5 * Copyright (C) xxxx the Anonymous
6 * Copyright (C) 1994 - 2006 Ralf Baechle
7 * Copyright (C) 2003, 2004 Maciej W. Rozycki
8 * Copyright (C) 2001, 2004, 2011, 2012 MIPS Technologies, Inc.

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

23#include <asm/mipsmtregs.h>
24#include <asm/msa.h>
25#include <asm/watch.h>
26#include <asm/elf.h>
27#include <asm/pgtable-bits.h>
28#include <asm/spram.h>
29#include <linux/uaccess.h>
30
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Processor capabilities determination functions.
4 *
5 * Copyright (C) xxxx the Anonymous
6 * Copyright (C) 1994 - 2006 Ralf Baechle
7 * Copyright (C) 2003, 2004 Maciej W. Rozycki
8 * Copyright (C) 2001, 2004, 2011, 2012 MIPS Technologies, Inc.

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

23#include <asm/mipsmtregs.h>
24#include <asm/msa.h>
25#include <asm/watch.h>
26#include <asm/elf.h>
27#include <asm/pgtable-bits.h>
28#include <asm/spram.h>
29#include <linux/uaccess.h>
30
31#include <asm/mach-loongson64/cpucfg-emul.h>
32
31/* Hardware capabilities */
32unsigned int elf_hwcap __read_mostly;
33EXPORT_SYMBOL_GPL(elf_hwcap);
34
35#ifdef CONFIG_MIPS_FP_SUPPORT
36
37/*
38 * Get the FPU Implementation/Revision.

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

2395 if (cpu_has_loongson_ext2)
2396 elf_hwcap |= HWCAP_LOONGSON_EXT2;
2397
2398 if (cpu_has_vz)
2399 cpu_probe_vz(c);
2400
2401 cpu_probe_vmbits(c);
2402
33/* Hardware capabilities */
34unsigned int elf_hwcap __read_mostly;
35EXPORT_SYMBOL_GPL(elf_hwcap);
36
37#ifdef CONFIG_MIPS_FP_SUPPORT
38
39/*
40 * Get the FPU Implementation/Revision.

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

2397 if (cpu_has_loongson_ext2)
2398 elf_hwcap |= HWCAP_LOONGSON_EXT2;
2399
2400 if (cpu_has_vz)
2401 cpu_probe_vz(c);
2402
2403 cpu_probe_vmbits(c);
2404
2405 /* Synthesize CPUCFG data if running on Loongson processors;
2406 * no-op otherwise.
2407 *
2408 * This looks at previously probed features, so keep this at bottom.
2409 */
2410 loongson3_cpucfg_synthesize_data(c);
2411
2403#ifdef CONFIG_64BIT
2404 if (cpu == 0)
2405 __ua_limit = ~((1ull << cpu_vmbits) - 1);
2406#endif
2407}
2408
2409void cpu_report(void)
2410{

--- 41 unchanged lines hidden ---
2412#ifdef CONFIG_64BIT
2413 if (cpu == 0)
2414 __ua_limit = ~((1ull << cpu_vmbits) - 1);
2415#endif
2416}
2417
2418void cpu_report(void)
2419{

--- 41 unchanged lines hidden ---