!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/mips/philips/nino/   drwxr-xr-x
Free 318.33 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:     kgdb.c (1.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *  linux/arch/mips/philips/nino/kgdb.c
 *
 *  Copyright (C) 2001 Steven J. Hill (sjhill@realitydiluted.com)
 *
 * 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.
 *
 *  Kernel debugging on the Philips Nino.
 */
#include <asm/system.h>
#include <asm/tx3912.h>

static int remoteDebugInitialized = 0;

void debugInit(void)
{
/*
 * If low-level debugging (before GDB or console operational) is
 * configured, then we do not need to re-initialize the UART.
 */
#ifndef CONFIG_DEBUG_LL
    earlyInitUartPR31700();
#endif
}

char getDebugChar(void)
{
    char buf;
    unsigned long int2, flags;

    if (!remoteDebugInitialized) {
        debugInit();
        remoteDebugInitialized = 1;
    }

    save_and_cli(flags);

    int2 = IntEnable2;

    IntEnable2 = 0;

    while(!(UartA_Ctrl1 & UART_RX_HOLD_FULL));

    buf = UartA_Data;

    IntEnable2 = int2;

    restore_flags(flags);

    return buf;    
}

int putDebugChar(char c)
{
    int i;
    unsigned long int2;

    if (!remoteDebugInitialized) {
        debugInit();
        remoteDebugInitialized = 1;
    }

    int2 = IntEnable2;

    IntEnable2 &=
        ~(INT2_UARTATXINT | INT2_UARTATXOVERRUN | INT2_UARTAEMPTY);

    for (i = 0; !(IntStatus2 & INT2_UARTATXINT) && (i < 10000); i++);

    IntClear2 = INT2_UARTATXINT | INT2_UARTATXOVERRUN | INT2_UARTAEMPTY;

    UartA_Data = c;

    for (i = 0; !(IntStatus2 & INT2_UARTATXINT) && (i < 10000); i++);

    IntClear2 = INT2_UARTATXINT | INT2_UARTATXOVERRUN | INT2_UARTAEMPTY;

    IntEnable2 = int2;

    return 1;
}

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