Blame view

kernel/linux-rt-4.4.41/arch/s390/include/asm/fpu/api.h 505 Bytes
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  /*
   * In-kernel FPU support functions
   *
   * Copyright IBM Corp. 2015
   * Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
   */
  
  #ifndef _ASM_S390_FPU_API_H
  #define _ASM_S390_FPU_API_H
  
  void save_fpu_regs(void);
  
  static inline int test_fp_ctl(u32 fpc)
  {
  	u32 orig_fpc;
  	int rc;
  
  	asm volatile(
  		"	efpc    %1
  "
  		"	sfpc	%2
  "
  		"0:	sfpc	%1
  "
  		"	la	%0,0
  "
  		"1:
  "
  		EX_TABLE(0b,1b)
  		: "=d" (rc), "=&d" (orig_fpc)
  		: "d" (fpc), "0" (-EINVAL));
  	return rc;
  }
  
  #endif /* _ASM_S390_FPU_API_H */