????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.116.47.33 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/modules/3.13.0-49-generic/build/arch/cris/include/arch-v32/arch/ |
Upload File : |
#ifndef __ASM_CRIS_ARCH_ATOMIC__ #define __ASM_CRIS_ARCH_ATOMIC__ #include <linux/spinlock_types.h> extern void cris_spin_unlock(void *l, int val); extern void cris_spin_lock(void *l); extern int cris_spin_trylock(void* l); #ifndef CONFIG_SMP #define cris_atomic_save(addr, flags) local_irq_save(flags); #define cris_atomic_restore(addr, flags) local_irq_restore(flags); #else extern spinlock_t cris_atomic_locks[]; #define LOCK_COUNT 128 #define HASH_ADDR(a) (((int)a) & 127) #define cris_atomic_save(addr, flags) \ local_irq_save(flags); \ cris_spin_lock((void *)&cris_atomic_locks[HASH_ADDR(addr)].raw_lock.slock); #define cris_atomic_restore(addr, flags) \ { \ spinlock_t *lock = (void*)&cris_atomic_locks[HASH_ADDR(addr)]; \ __asm__ volatile ("move.d %1,%0" \ : "=m" (lock->raw_lock.slock) \ : "r" (1) \ : "memory"); \ local_irq_restore(flags); \ } #endif #endif