aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-s390/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-s390/system.h')
-rw-r--r--include/asm-s390/system.h8
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
435static 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
435extern void (*_machine_restart)(char *command); 443extern void (*_machine_restart)(char *command);
436extern void (*_machine_halt)(void); 444extern void (*_machine_halt)(void);
437extern void (*_machine_power_off)(void); 445extern void (*_machine_power_off)(void);