Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /usr/src/linux-headers-4.4.0-143/arch/xtensa/include/asm/ |
Upload File : |
/* * arch/xtensa/include/asm/traps.h * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2012 Tensilica Inc. */ #ifndef _XTENSA_TRAPS_H #define _XTENSA_TRAPS_H #include <asm/ptrace.h> /* * handler must be either of the following: * void (*)(struct pt_regs *regs); * void (*)(struct pt_regs *regs, unsigned long exccause); */ extern void * __init trap_set_handler(int cause, void *handler); extern void do_unhandled(struct pt_regs *regs, unsigned long exccause); void secondary_trap_init(void); static inline void spill_registers(void) { #if XCHAL_NUM_AREGS > 16 __asm__ __volatile__ ( " call8 1f\n" " _j 2f\n" " retw\n" " .align 4\n" "1:\n" #if XCHAL_NUM_AREGS == 32 " _entry a1, 32\n" " addi a8, a0, 3\n" " _entry a1, 16\n" " mov a12, a12\n" " retw\n" #else " _entry a1, 48\n" " call12 1f\n" " retw\n" " .align 4\n" "1:\n" " .rept (" __stringify(XCHAL_NUM_AREGS) " - 16) / 12\n" " _entry a1, 48\n" " mov a12, a0\n" " .endr\n" " _entry a1, 16\n" #if XCHAL_NUM_AREGS % 12 == 0 " mov a12, a12\n" #elif XCHAL_NUM_AREGS % 12 == 4 " mov a4, a4\n" #elif XCHAL_NUM_AREGS % 12 == 8 " mov a8, a8\n" #endif " retw\n" #endif "2:\n" : : : "a8", "a9", "memory"); #else __asm__ __volatile__ ( " mov a12, a12\n" : : : "memory"); #endif } #endif /* _XTENSA_TRAPS_H */