!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-headers-3.13.0-170/arch/s390/include/asm/   drwxr-xr-x
Free 9.62 GB of 29.4 GB (32.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     facility.h (1.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Copyright IBM Corp. 1999, 2009
 *
 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
 */

#ifndef __ASM_FACILITY_H
#define __ASM_FACILITY_H

#include <linux/string.h>
#include <linux/preempt.h>
#include <asm/lowcore.h>

#define MAX_FACILITY_BIT (256*8)    /* stfle_fac_list has 256 bytes */

static inline int __test_facility(unsigned long nr, void *facilities)
{
    unsigned char *ptr;

    if (nr >= MAX_FACILITY_BIT)
        return 0;
    ptr = (unsigned char *) facilities + (nr >> 3);
    return (*ptr & (0x80 >> (nr & 7))) != 0;
}

/*
 * The test_facility function uses the bit odering where the MSB is bit 0.
 * That makes it easier to query facility bits with the bit number as
 * documented in the Principles of Operation.
 */
static inline int test_facility(unsigned long nr)
{
    return __test_facility(nr, &S390_lowcore.stfle_fac_list);
}

/**
 * stfle - Store facility list extended
 * @stfle_fac_list: array where facility list can be stored
 * @size: size of passed in array in double words
 */
static inline void stfle(u64 *stfle_fac_list, int size)
{
    unsigned long nr;

    preempt_disable();
    asm volatile(
        "    .insn s,0xb2b10000,0(0)\n" /* stfl */
        "0:\n"
        EX_TABLE(0b, 0b)
        : "+m" (S390_lowcore.stfl_fac_list));
    nr = 4; /* bytes stored by stfl */
    memcpy(stfle_fac_list, &S390_lowcore.stfl_fac_list, 4);
    if (S390_lowcore.stfl_fac_list & 0x01000000) {
        /* More facility bits available with stfle */
        register unsigned long reg0 asm("0") = size - 1;

        asm volatile(".insn s,0xb2b00000,0(%1)" /* stfle */
                 : "+d" (reg0)
                 : "a" (stfle_fac_list)
                 : "memory", "cc");
        nr = (reg0 + 1) * 8; /* # bytes stored by stfle */
    }
    memset((char *) stfle_fac_list + nr, 0, size * 8 - nr);
    preempt_enable();
}

#endif /* __ASM_FACILITY_H */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0058 ]--