!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/arch/arm/kernel/   drwxr-xr-x
Free 318.37 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     time-acorn.c (1.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *  linux/arch/arm/kernel/time-acorn.c
 *
 *  Copyright (c) 1996-2000 Russell King.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 *  Changelog:
 *   24-Sep-1996    RMK    Created
 *   10-Oct-1996    RMK    Brought up to date with arch-sa110eval
 *   04-Dec-1997    RMK    Updated for new arch/arm/time.c
 */
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/init.h>

#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/hardware/ioc.h>

extern unsigned long (*gettimeoffset)(void);

static unsigned long ioctime_gettimeoffset(void)
{
    unsigned int count1, count2, status1, status2;
    unsigned long offset = 0;

    status1 = ioc_readb(IOC_IRQREQA);
    barrier ();
    ioc_writeb (0, IOC_T0LATCH);
    barrier ();
    count1 = ioc_readb(IOC_T0CNTL) | (ioc_readb(IOC_T0CNTH) << 8);
    barrier ();
    status2 = ioc_readb(IOC_IRQREQA);
    barrier ();
    ioc_writeb (0, IOC_T0LATCH);
    barrier ();
    count2 = ioc_readb(IOC_T0CNTL) | (ioc_readb(IOC_T0CNTH) << 8);

    if (count2 < count1) {
        /*
         * This means that we haven't just had an interrupt
         * while reading into status2.
         */
        if (status2 & (1 << 5))
            offset = tick;
        count1 = count2;
    } else if (count2 > count1) {
        /*
         * We have just had another interrupt while reading
         * status2.
         */
        offset += tick;
        count1 = count2;
    }

    count1 = LATCH - count1;
    /*
     * count1 = number of clock ticks since last interrupt
     */
    offset += count1 * tick / LATCH;
    return offset;
}

void __init ioctime_init(void)
{
    ioc_writeb(LATCH & 255, IOC_T0LTCHL);
    ioc_writeb(LATCH >> 8, IOC_T0LTCHH);
    ioc_writeb(0, IOC_T0GO);

    gettimeoffset = ioctime_gettimeoffset;
}

:: 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.0112 ]--