!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/arc/   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:     identify.c (1.88 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * 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.
 *
 * identify.c: identify machine by looking up system identifier
 *
 * Copyright (C) 1998 Thomas Bogendoerfer
 * 
 * This code is based on arch/mips/sgi/kernel/system.c, which is
 * 
 * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
 */
#include <linux/init.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>

#include <asm/sgialib.h>
#include <asm/bootinfo.h>

struct smatch {
    char *name;
    int group;
    int type;
    int flags;
};

static struct smatch mach_table[] = {
    { "SGI-IP22", MACH_GROUP_SGI, MACH_SGI_INDY, PROM_FLAG_ARCS },
    { "SGI-IP27", MACH_GROUP_SGI, MACH_SGI_IP27, PROM_FLAG_ARCS },
    { "Microsoft-Jazz", MACH_GROUP_JAZZ, MACH_MIPS_MAGNUM_4000, 0 },
    { "PICA-61", MACH_GROUP_JAZZ, MACH_ACER_PICA_61, 0 },
    { "RM200PCI", MACH_GROUP_SNI_RM, MACH_SNI_RM200_PCI, 0 }
};

int prom_flags;

static struct smatch * __init
string_to_mach(const char *s)
{
    int i;
    
    for (i = 0; i < (sizeof (mach_table) / sizeof (mach_table[0])); i++) {
        if(!strcmp(s, mach_table[i].name))
            return &mach_table[i];
    }
    panic("\nYeee, could not determine architecture type <%s>", s);

    return NULL;
}

void __init
prom_identify_arch(void)
{
    pcomponent *p;
    struct smatch *mach;
    const char *iname;

    /* The root component tells us what machine architecture we
       have here.  */
    p = ArcGetChild(PROM_NULL_COMPONENT);
    if (p == NULL) {
#ifdef CONFIG_SGI_IP27
        /* IP27 PROM bisbehaves, seems to not implement ARC
           GetChild().  So we just assume it's an IP27.  */
        iname = "SGI-IP27";
#endif
    } else
        iname = (char *) (long) p->iname;

    printk("ARCH: %s\n", iname);
    mach = string_to_mach(iname);

    mips_machgroup = mach->group;
    mips_machtype = mach->type;
    prom_flags = mach->flags;
}

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