]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-s390/lowcore.h
[ARM] 4139/1: AACI record support
[linux-2.6-omap-h63xx.git] / include / asm-s390 / lowcore.h
index 18695d10dedfdd6477973ca18efce6ff08cebd2d..74f7389bd3ee05004620f3370fe23b8458dc78d8 100644 (file)
@@ -359,7 +359,15 @@ extern struct _lowcore *lowcore_ptr[];
 
 static inline void set_prefix(__u32 address)
 {
-        __asm__ __volatile__ ("spx %0" : : "m" (address) : "memory" );
+       asm volatile("spx %0" : : "m" (address) : "memory");
+}
+
+static inline __u32 store_prefix(void)
+{
+       __u32 address;
+
+       asm volatile("stpx %0" : "=m" (address));
+       return address;
 }
 
 #define __PANIC_MAGIC           0xDEADC0DE