From a0616cdebcfd575dcd4c46102d1b52fbb827fc29 Mon Sep 17 00:00:00 2001 From: David Howells Date: Wed, 28 Mar 2012 18:30:02 +0100 Subject: Disintegrate asm/system.h for S390 Disintegrate asm/system.h for S390. Signed-off-by: David Howells cc: linux-s390@vger.kernel.org --- arch/s390/include/asm/processor.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'arch/s390/include/asm/processor.h') diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index d25843a6a915..d499b30ea487 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -14,6 +14,7 @@ #define __ASM_S390_PROCESSOR_H #include +#include #include #include #include @@ -156,6 +157,14 @@ unsigned long get_wchan(struct task_struct *p); #define KSTK_EIP(tsk) (task_pt_regs(tsk)->psw.addr) #define KSTK_ESP(tsk) (task_pt_regs(tsk)->gprs[15]) +static inline unsigned short stap(void) +{ + unsigned short cpu_address; + + asm volatile("stap %0" : "=m" (cpu_address)); + return cpu_address; +} + /* * Give up the time slice of the virtual PU. */ @@ -303,6 +312,21 @@ static inline void __noreturn disabled_wait(unsigned long code) while (1); } +/* + * Use to set psw mask except for the first byte which + * won't be changed by this function. + */ +static inline void +__set_psw_mask(unsigned long mask) +{ + __load_psw_mask(mask | (arch_local_save_flags() & ~(-1UL >> 8))); +} + +#define local_mcck_enable() \ + __set_psw_mask(psw_kernel_bits | PSW_MASK_DAT | PSW_MASK_MCHECK) +#define local_mcck_disable() \ + __set_psw_mask(psw_kernel_bits | PSW_MASK_DAT) + /* * Basic Machine Check/Program Check Handler. */ -- cgit v1.2.3 581e73b335701a&follow=1'>diffstats
AgeCommit message (Expand)AuthorFilesLines
2025-06-02ASoC: pcm: Do not open FEs with no BEs connectedCezary Rojewski1-11/+12
2025-06-02ASoC: rt1320: fix speaker noise when volume bar is 100%Shuming Fan1-1/+16
2025-06-02ASoC: Intel: avs: Include missing string.hCezary Rojewski1-0/+1
2025-06-02ASoC: Intel: avs: Verify content returned by parse_int_array()Cezary Rojewski1-1/+5
2025-06-02ASoC: Intel: avs: Verify kcalloc() status when setting constraintsCezary Rojewski1-0/+2
2025-06-02ASoC: Intel: avs: Fix paths in MODULE_FIRMWARE hintsAmadeusz Sławiński1-10/+10
2025-06-02ASoC: Intel: avs: Fix possible null-ptr-deref when initing hwCezary Rojewski1-4/+1
2025-06-02ASoC: Intel: avs: Fix PPLCxFMT calculationCezary Rojewski1-3/+5
2025-06-02ASoC: Intel: avs: Fix deadlock when the failing IPC is SET_D0IXCezary Rojewski1-1/+3
2025-06-02ASoC: codecs: hda: Fix RPM usage count underflowCezary Rojewski1-2/+2
2025-05-28ASoC: amd: yc: Add support for Lenovo Yoga 7 16ARP8meowmeowbeanz1-0/+7
2025-05-28ASoC: tas571x: fix tas5733 num_controlsBram Vlerick1-1/+1
2025-05-27ASoC: tas571x: add separate tas5733 controlsBram Vlerick2-1/+98
2025-05-27ASoC: codecs: fix out-of-bounds access on invalid clock configQasim Ijaz1-0/+1
2025-05-27ASoC: codecs: wcd9375: Fix double free of regulator suppliesKrzysztof Kozlowski1-5/+1
2025-05-27ASoC: codecs: wcd937x: Drop unused buck_supplyKrzysztof Kozlowski1-1/+0
2025-05-27ASoC: codecs: wcd9335: Fix missing free of regulator suppliesKrzysztof Kozlowski1-18/+7
2025-05-26firmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache)Jaroslav Kysela1-1/+0
2025-05-26firmware: cs_dsp: Fix OOB memory read access in KUnit test (wmfw info)Jaroslav Kysela1-1/+2
2025-05-23firmware: cs_dsp: Fix OOB memory read access in KUnit testJaroslav Kysela1-1/+2
2025-05-23ASoC: codecs: add support for ES8375Zhang Yi4-0/+923