processor.h (4e73e0eb633f8a1b5cbf20e7f42c6dbfec1d1ca7) processor.h (e86a6ed63f46fe8fb555fda531084bca3ef62fd7)
1/*
2 * include/asm-s390/processor.h
3 *
4 * S390 version
5 * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 * Author(s): Hartmut Penner (hp@de.ibm.com),
7 * Martin Schwidefsky (schwidefsky@de.ibm.com)
8 *
9 * Derived from "include/asm-i386/processor.h"
10 * Copyright (C) 1994, Linus Torvalds
11 */
12
13#ifndef __ASM_S390_PROCESSOR_H
14#define __ASM_S390_PROCESSOR_H
15
16#include <linux/linkage.h>
1/*
2 * include/asm-s390/processor.h
3 *
4 * S390 version
5 * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 * Author(s): Hartmut Penner (hp@de.ibm.com),
7 * Martin Schwidefsky (schwidefsky@de.ibm.com)
8 *
9 * Derived from "include/asm-i386/processor.h"
10 * Copyright (C) 1994, Linus Torvalds
11 */
12
13#ifndef __ASM_S390_PROCESSOR_H
14#define __ASM_S390_PROCESSOR_H
15
16#include <linux/linkage.h>
17#include <asm/cpuid.h>
17#include <asm/cpu.h>
18#include <asm/page.h>
19#include <asm/ptrace.h>
20#include <asm/setup.h>
21
22#ifdef __KERNEL__
23/*
24 * Default implementation of macro that returns current
25 * instruction pointer ("program counter").
26 */
27#define current_text_addr() ({ void *pc; asm("basr %0,0" : "=a" (pc)); pc; })
28
18#include <asm/page.h>
19#include <asm/ptrace.h>
20#include <asm/setup.h>
21
22#ifdef __KERNEL__
23/*
24 * Default implementation of macro that returns current
25 * instruction pointer ("program counter").
26 */
27#define current_text_addr() ({ void *pc; asm("basr %0,0" : "=a" (pc)); pc; })
28
29static inline void get_cpu_id(cpuid_t *ptr)
29static inline void get_cpu_id(struct cpuid *ptr)
30{
31 asm volatile("stidp 0(%1)" : "=m" (*ptr) : "a" (ptr));
32}
33
34extern void s390_adjust_jiffies(void);
35extern void print_cpu_info(void);
36extern int get_cpu_capability(unsigned int *);
37

--- 299 unchanged lines hidden ---
30{
31 asm volatile("stidp 0(%1)" : "=m" (*ptr) : "a" (ptr));
32}
33
34extern void s390_adjust_jiffies(void);
35extern void print_cpu_info(void);
36extern int get_cpu_capability(unsigned int *);
37

--- 299 unchanged lines hidden ---