!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/include/asm-cris/   drwxr-xr-x
Free 318.34 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     smp_lock.h (1.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef __CRIS_SMPLOCK_H
#define __CRIS_SMPLOCK_H

#include <linux/config.h>

#ifdef CONFIG_SMP

#error "SMP is not supported for CRIS"

/*
 *    Locking the kernel 
 */
 
extern __inline void lock_kernel(void)
{
    unsigned long flags;
    int proc = smp_processor_id();

    save_flags(flags);
    cli();
    /* set_bit works atomic in SMP machines */
    while(set_bit(0, (void *)&kernel_flag)) 
    {
        /*
         *    We just start another level if we have the lock 
         */
        if (proc == active_kernel_processor)
            break;
        do 
        {
#ifdef __SMP_PROF__        
            smp_spins[smp_processor_id()]++;
#endif            
            /*
             *    Doing test_bit here doesn't lock the bus 
             */
            if (test_bit(proc, (void *)&smp_invalidate_needed))
                if (clear_bit(proc, (void *)&smp_invalidate_needed))
                    local_flush_tlb();
        }
        while(test_bit(0, (void *)&kernel_flag));
    }
    /* 
     *    We got the lock, so tell the world we are here and increment
     *    the level counter 
     */
    active_kernel_processor = proc;
    kernel_counter++;
    restore_flags(flags);
}

extern __inline void unlock_kernel(void)
{
    unsigned long flags;
    save_flags(flags);
    cli();
    /*
     *    If it's the last level we have in the kernel, then
     *    free the lock 
     */
    if (kernel_counter == 0)
        panic("Kernel counter wrong.\n"); /* FIXME: Why is kernel_counter sometimes 0 here? */
    
    if(! --kernel_counter) 
    {
        active_kernel_processor = NO_PROC_ID;
        clear_bit(0, (void *)&kernel_flag);
    }
    restore_flags(flags);
}

#endif
#endif

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0269 ]--