processor.h (bf61c8840efe60fd8f91446860b63338fb424158) processor.h (200c880420a2c02a0899120ce52d801fad705b90)
1/*
2 * include/asm-parisc/processor.h
3 *
4 * Copyright (C) 1994 Linus Torvalds
5 * Copyright (C) 2001 Grant Grundler
6 */
7
8#ifndef __ASM_PARISC_PROCESSOR_H

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

15#include <asm/hardware.h>
16#include <asm/pdc.h>
17#include <asm/ptrace.h>
18#include <asm/types.h>
19#include <asm/percpu.h>
20
21#endif /* __ASSEMBLY__ */
22
1/*
2 * include/asm-parisc/processor.h
3 *
4 * Copyright (C) 1994 Linus Torvalds
5 * Copyright (C) 2001 Grant Grundler
6 */
7
8#ifndef __ASM_PARISC_PROCESSOR_H

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

15#include <asm/hardware.h>
16#include <asm/pdc.h>
17#include <asm/ptrace.h>
18#include <asm/types.h>
19#include <asm/percpu.h>
20
21#endif /* __ASSEMBLY__ */
22
23#define KERNEL_STACK_SIZE (4*PAGE_SIZE)
24
25/*
26 * Default implementation of macro that returns current
27 * instruction pointer ("program counter").
28 */
29#ifdef CONFIG_PA20
30#define current_ia(x) __asm__("mfia %0" : "=r"(x))
31#else /* mfia added in pa2.0 */
32#define current_ia(x) __asm__("blr 0,%0\n\tnop" : "=r"(x))

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

56#define STACK_TOP TASK_SIZE
57#define STACK_TOP_MAX DEFAULT_TASK_SIZE
58
59#endif
60
61#ifndef __ASSEMBLY__
62
63/*
23/*
24 * Default implementation of macro that returns current
25 * instruction pointer ("program counter").
26 */
27#ifdef CONFIG_PA20
28#define current_ia(x) __asm__("mfia %0" : "=r"(x))
29#else /* mfia added in pa2.0 */
30#define current_ia(x) __asm__("blr 0,%0\n\tnop" : "=r"(x))

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

54#define STACK_TOP TASK_SIZE
55#define STACK_TOP_MAX DEFAULT_TASK_SIZE
56
57#endif
58
59#ifndef __ASSEMBLY__
60
61/*
62 * IRQ STACK - used for irq handler
63 */
64#ifdef __KERNEL__
65
66#define IRQ_STACK_SIZE (4096 << 2) /* 16k irq stack size */
67
68union irq_stack_union {
69 unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];
70};
71
72DECLARE_PER_CPU(union irq_stack_union, irq_stack_union);
73
74void call_on_stack(unsigned long p1, void *func, unsigned long new_stack);
75
76#endif /* __KERNEL__ */
77
78/*
64 * Data detected about CPUs at boot time which is the same for all CPU's.
65 * HP boxes are SMP - ie identical processors.
66 *
67 * FIXME: some CPU rev info may be processor specific...
68 */
69struct system_cpuinfo_parisc {
70 unsigned int cpu_count;
71 unsigned int cpu_hz;

--- 283 unchanged lines hidden ---
79 * Data detected about CPUs at boot time which is the same for all CPU's.
80 * HP boxes are SMP - ie identical processors.
81 *
82 * FIXME: some CPU rev info may be processor specific...
83 */
84struct system_cpuinfo_parisc {
85 unsigned int cpu_count;
86 unsigned int cpu_hz;

--- 283 unchanged lines hidden ---