|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 21.94 GB of 70.42 GB (31.15%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: 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,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
linux-headers-3.0.0-14/
arch/
sh/
include/
asm/
- drwxr-xr-x
|
Viewing file: atomic-llsc.h (2.15 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#ifndef __ASM_SH_ATOMIC_LLSC_H #define __ASM_SH_ATOMIC_LLSC_H
/* * To get proper branch prediction for the main line, we must branch * forward to code at the end of this object's .text section, then * branch back to restart the operation. */ static inline void atomic_add(int i, atomic_t *v) { unsigned long tmp;
__asm__ __volatile__ ( "1: movli.l @%2, %0 ! atomic_add \n" " add %1, %0 \n" " movco.l %0, @%2 \n" " bf 1b \n" : "=&z" (tmp) : "r" (i), "r" (&v->counter) : "t"); }
static inline void atomic_sub(int i, atomic_t *v) { unsigned long tmp;
__asm__ __volatile__ ( "1: movli.l @%2, %0 ! atomic_sub \n" " sub %1, %0 \n" " movco.l %0, @%2 \n" " bf 1b \n" : "=&z" (tmp) : "r" (i), "r" (&v->counter) : "t"); }
/* * SH-4A note: * * We basically get atomic_xxx_return() for free compared with * atomic_xxx(). movli.l/movco.l require r0 due to the instruction * encoding, so the retval is automatically set without having to * do any special work. */ static inline int atomic_add_return(int i, atomic_t *v) { unsigned long temp;
__asm__ __volatile__ ( "1: movli.l @%2, %0 ! atomic_add_return \n" " add %1, %0 \n" " movco.l %0, @%2 \n" " bf 1b \n" " synco \n" : "=&z" (temp) : "r" (i), "r" (&v->counter) : "t");
return temp; }
static inline int atomic_sub_return(int i, atomic_t *v) { unsigned long temp;
__asm__ __volatile__ ( "1: movli.l @%2, %0 ! atomic_sub_return \n" " sub %1, %0 \n" " movco.l %0, @%2 \n" " bf 1b \n" " synco \n" : "=&z" (temp) : "r" (i), "r" (&v->counter) : "t");
return temp; }
static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) { unsigned long tmp;
__asm__ __volatile__ ( "1: movli.l @%2, %0 ! atomic_clear_mask \n" " and %1, %0 \n" " movco.l %0, @%2 \n" " bf 1b \n" : "=&z" (tmp) : "r" (~mask), "r" (&v->counter) : "t"); }
static inline void atomic_set_mask(unsigned int mask, atomic_t *v) { unsigned long tmp;
__asm__ __volatile__ ( "1: movli.l @%2, %0 ! atomic_set_mask \n" " or %1, %0 \n" " movco.l %0, @%2 \n" " bf 1b \n" : "=&z" (tmp) : "r" (mask), "r" (&v->counter) : "t"); }
#endif /* __ASM_SH_ATOMIC_LLSC_H */
|