!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/mips64/sgi-ip32/   drwxr-xr-x
Free 318.32 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:     ip32-timer.c (1.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * IP32 timer calibration
 *
 * 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) 2001 Keith M Wesolowski
 */
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <asm/mipsregs.h>
#include <asm/param.h>
#include <asm/ip32/crime.h>
#include <asm/ip32/ip32_ints.h>

extern u32 cc_interval;

/* An arbitrary time; this can be decreased if reliability looks good */
#define WAIT_MS 10
#define PER_MHZ (1000000 / 2 / HZ)

void __init ip32_timer_setup (struct irqaction *irq) {
    u64 crime_time;
    u32 cc_tick;

    printk("Calibrating system timer... ");

    crime_time = crime_read_64 (CRIME_TIME) & CRIME_TIME_MASK;
    cc_tick = read_32bit_cp0_register (CP0_COUNT);

    while ((crime_read_64 (CRIME_TIME) & CRIME_TIME_MASK) - crime_time 
        < WAIT_MS * 1000000 / CRIME_NS_PER_TICK)
        ;
    cc_tick = read_32bit_cp0_register (CP0_COUNT) - cc_tick;
    cc_interval = cc_tick / HZ * (1000 / WAIT_MS);
    /* The round-off seems unnecessary; in testing, the error of the
     * above procedure is < 100 ticks, which means it gets filtered
     * out by the HZ adjustment. 
     */
    cc_interval = (cc_interval / PER_MHZ) * PER_MHZ;

    printk("%d MHz CPU detected\n", (int) (cc_interval / PER_MHZ));

    setup_irq (CLOCK_IRQ, irq);
}

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