!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-sparc/   drwxr-xr-x
Free 318.39 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:     processor.h (5.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* $Id: processor.h,v 1.83 2001/10/08 09:32:13 davem Exp $
 * include/asm-sparc/processor.h
 *
 * Copyright (C) 1994 David S. Miller (davem@caip.rutgers.edu)
 */

#ifndef __ASM_SPARC_PROCESSOR_H
#define __ASM_SPARC_PROCESSOR_H

/*
 * Sparc32 implementation of macro that returns current
 * instruction pointer ("program counter").
 */
#define current_text_addr() ({ void *pc; __asm__("sethi %%hi(1f), %0; or %0, %%lo(1f), %0;\n1:" : "=r" (pc)); pc; })

#include <linux/a.out.h>

#include <asm/psr.h>
#include <asm/ptrace.h>
#include <asm/head.h>
#include <asm/signal.h>
#include <asm/segment.h>
#include <asm/btfixup.h>
#include <asm/page.h>
#include <asm/atomic.h>

/*
 * Bus types
 */
#define EISA_bus 0
#define EISA_bus__is_a_macro /* for versions in ksyms.c */
#define MCA_bus 0
#define MCA_bus__is_a_macro /* for versions in ksyms.c */

/*
 * The sparc has no problems with write protection
 */
#define wp_works_ok 1
#define wp_works_ok__is_a_macro /* for versions in ksyms.c */

/* Whee, this is STACK_TOP + PAGE_SIZE and the lowest kernel address too... 
 * That one page is used to protect kernel from intruders, so that
 * we can make our access_ok test faster
 */
#define TASK_SIZE    PAGE_OFFSET

struct fpq {
    unsigned long *insn_addr;
    unsigned long insn;
};

typedef struct {
    int seg;
} mm_segment_t;

/* The Sparc processor specific thread struct. */
struct thread_struct {
    unsigned long uwinmask __attribute__ ((aligned (8)));
    struct pt_regs *kregs;

    /* Context switch saved kernel state. */
    unsigned long ksp __attribute__ ((aligned (8)));
    unsigned long kpc;
    unsigned long kpsr;
    unsigned long kwim;

    /* Special child fork kpsr/kwim values. */
    unsigned long fork_kpsr __attribute__ ((aligned (8)));
    unsigned long fork_kwim;

    /* A place to store user windows and stack pointers
     * when the stack needs inspection.
     */
#define NSWINS 8
    struct reg_window reg_window[NSWINS] __attribute__ ((aligned (8)));
    unsigned long rwbuf_stkptrs[NSWINS] __attribute__ ((aligned (8)));
    unsigned long w_saved;

    /* Floating point regs */
    unsigned long   float_regs[32] __attribute__ ((aligned (8)));
    unsigned long   fsr;
    unsigned long   fpqdepth;
    struct fpq    fpqueue[16];
    unsigned long flags;
    mm_segment_t current_ds;
    struct exec core_exec;     /* just what it says. */
    int new_signal;
    atomic_t refcount;    /* used for sun4c only */
};

#define SPARC_FLAG_KTHREAD      0x1    /* task is a kernel thread */
#define SPARC_FLAG_UNALIGNED    0x2    /* is allowed to do unaligned accesses */

#define INIT_THREAD  { \
/* uwinmask, kregs, ksp, kpc, kpsr, kwim */ \
   0,        0,     0,   0,   0,    0, \
/* fork_kpsr, fork_kwim */ \
   0,         0, \
/* reg_window */  \
{ { { 0, }, { 0, } }, }, \
/* rwbuf_stkptrs */  \
{ 0, 0, 0, 0, 0, 0, 0, 0, }, \
/* w_saved */ \
   0, \
/* FPU regs */   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
                   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, \
/* FPU status, FPU qdepth, FPU queue */ \
   0,          0,  { { 0, 0, }, }, \
/* flags,              current_ds, */ \
   SPARC_FLAG_KTHREAD, KERNEL_DS, \
/* core_exec */ \
{ 0, }, \
/* new_signal */ \
  0, \
}

/* Return saved PC of a blocked thread. */
extern __inline__ unsigned long thread_saved_pc(struct thread_struct *t)
{
    return t->kpc;
}

/* Do necessary setup to start up a newly executed thread. */
extern __inline__ void start_thread(struct pt_regs * regs, unsigned long pc,
                    unsigned long sp)
{
    register unsigned long zero asm("g1");

    regs->psr = (regs->psr & (PSR_CWP)) | PSR_S;
    regs->pc = ((pc & (~3)) - 4);
    regs->npc = regs->pc + 4;
    regs->y = 0;
    zero = 0;
    __asm__ __volatile__("std\t%%g0, [%0 + %3 + 0x00]\n\t"
                 "std\t%%g0, [%0 + %3 + 0x08]\n\t"
                 "std\t%%g0, [%0 + %3 + 0x10]\n\t"
                 "std\t%%g0, [%0 + %3 + 0x18]\n\t"
                 "std\t%%g0, [%0 + %3 + 0x20]\n\t"
                 "std\t%%g0, [%0 + %3 + 0x28]\n\t"
                 "std\t%%g0, [%0 + %3 + 0x30]\n\t"
                 "st\t%1, [%0 + %3 + 0x38]\n\t"
                 "st\t%%g0, [%0 + %3 + 0x3c]"
                 : : "r" (regs), "r" (sp - REGWIN_SZ), "r" (zero),
                 "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0])));
}

/* Free all resources held by a thread. */
#define release_thread(tsk)        do { } while(0)
extern pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);


#define copy_segments(tsk, mm)        do { } while (0)
#define release_segments(mm)        do { } while (0)

#define get_wchan(__TSK) \
({    extern void scheduling_functions_start_here(void); \
    extern void scheduling_functions_end_here(void); \
    unsigned long pc, fp, bias = 0; \
    unsigned long task_base = (unsigned long) (__TSK); \
        unsigned long __ret = 0; \
    struct reg_window *rw; \
    int count = 0; \
    if (!(__TSK) || (__TSK) == current || \
            (__TSK)->state == TASK_RUNNING) \
        goto __out; \
    fp = (__TSK)->thread.ksp + bias; \
    do { \
        /* Bogus frame pointer? */ \
        if (fp < (task_base + sizeof(struct task_struct)) || \
            fp >= (task_base + (2 * PAGE_SIZE))) \
            break; \
        rw = (struct reg_window *) fp; \
        pc = rw->ins[7]; \
        if (pc < ((unsigned long) scheduling_functions_start_here) || \
                    pc >= ((unsigned long) scheduling_functions_end_here)) { \
            __ret = pc; \
            goto __out; \
        } \
        fp = rw->ins[6] + bias; \
    } while (++count < 16); \
__out:    __ret; \
})

#define KSTK_EIP(tsk)  ((tsk)->thread.kregs->pc)
#define KSTK_ESP(tsk)  ((tsk)->thread.kregs->u_regs[UREG_FP])

#ifdef __KERNEL__
#define THREAD_SIZE (2*PAGE_SIZE)

extern struct task_struct *last_task_used_math;

/* Allocation and freeing of basic task resources. */
BTFIXUPDEF_CALL(struct task_struct *, alloc_task_struct, void)
BTFIXUPDEF_CALL(void, free_task_struct, struct task_struct *)
BTFIXUPDEF_CALL(void, get_task_struct, struct task_struct *)

#define alloc_task_struct() BTFIXUP_CALL(alloc_task_struct)()
#define free_task_struct(tsk) BTFIXUP_CALL(free_task_struct)(tsk)
#define get_task_struct(tsk) BTFIXUP_CALL(get_task_struct)(tsk)

#define init_task    (init_task_union.task)
#define init_stack    (init_task_union.stack)

#define cpu_relax()    do { } while (0)

#endif

#endif /* __ASM_SPARC_PROCESSOR_H */

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