root/arch/x86/um/asm/processor.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. rep_nop

   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 #ifndef __UM_PROCESSOR_H
   3 #define __UM_PROCESSOR_H
   4 
   5 /* include faultinfo structure */
   6 #include <sysdep/faultinfo.h>
   7 
   8 #ifdef CONFIG_X86_32
   9 # include "processor_32.h"
  10 #else
  11 # include "processor_64.h"
  12 #endif
  13 
  14 #define KSTK_EIP(tsk) KSTK_REG(tsk, HOST_IP)
  15 #define KSTK_ESP(tsk) KSTK_REG(tsk, HOST_SP)
  16 #define KSTK_EBP(tsk) KSTK_REG(tsk, HOST_BP)
  17 
  18 #define ARCH_IS_STACKGROW(address) \
  19        (address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(&current->thread.regs.regs))
  20 
  21 #include <asm/user.h>
  22 
  23 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
  24 static inline void rep_nop(void)
  25 {
  26         __asm__ __volatile__("rep;nop": : :"memory");
  27 }
  28 
  29 #define cpu_relax()             rep_nop()
  30 
  31 #define task_pt_regs(t) (&(t)->thread.regs)
  32 
  33 #include <asm/processor-generic.h>
  34 
  35 #endif

/* [<][>][^][v][top][bottom][index][help] */