diff options
Diffstat (limited to 'include/asm-s390/system.h')
-rw-r--r-- | include/asm-s390/system.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-s390/system.h b/include/asm-s390/system.h index 79bdbf4b33a7..c819ae25a842 100644 --- a/include/asm-s390/system.h +++ b/include/asm-s390/system.h | |||
@@ -432,6 +432,14 @@ static inline unsigned int stfl(void) | |||
432 | return S390_lowcore.stfl_fac_list; | 432 | return S390_lowcore.stfl_fac_list; |
433 | } | 433 | } |
434 | 434 | ||
435 | static inline unsigned short stap(void) | ||
436 | { | ||
437 | unsigned short cpu_address; | ||
438 | |||
439 | asm volatile("stap %0" : "=m" (cpu_address)); | ||
440 | return cpu_address; | ||
441 | } | ||
442 | |||
435 | extern void (*_machine_restart)(char *command); | 443 | extern void (*_machine_restart)(char *command); |
436 | extern void (*_machine_halt)(void); | 444 | extern void (*_machine_halt)(void); |
437 | extern void (*_machine_power_off)(void); | 445 | extern void (*_machine_power_off)(void); |