404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.145.167.178: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SCORE_PROCESSOR_H
#define _ASM_SCORE_PROCESSOR_H

#include <linux/cpumask.h>
#include <linux/threads.h>

#include <asm/segment.h>

struct task_struct;

/*
 * System setup and hardware flags..
 */
extern void (*cpu_wait)(void);

extern void start_thread(struct pt_regs *regs,
			unsigned long pc, unsigned long sp);
extern unsigned long get_wchan(struct task_struct *p);

/*
 * Return current * instruction pointer ("program counter").
 */
#define current_text_addr() ({ __label__ _l; _l: &&_l; })

#define cpu_relax()		barrier()
#define release_thread(thread)	do {} while (0)

/*
 * User space process size: 2GB. This is hardcoded into a few places,
 * so don't change it unless you know what you are doing.
 */
#define TASK_SIZE	0x7fff8000UL

/*
 * This decides where the kernel will search for a free chunk of vm
 * space during mmap's.
 */
#define TASK_UNMAPPED_BASE	((TASK_SIZE / 3) & ~(PAGE_SIZE))

#ifdef __KERNEL__
#define STACK_TOP	TASK_SIZE
#define STACK_TOP_MAX	TASK_SIZE
#endif

/*
 * If you change thread_struct remember to change the #defines below too!
 */
struct thread_struct {
	unsigned long reg0, reg2, reg3;
	unsigned long reg12, reg13, reg14, reg15, reg16;
	unsigned long reg17, reg18, reg19, reg20, reg21;

	unsigned long cp0_psr;
	unsigned long cp0_ema;		/* Last user fault */
	unsigned long cp0_badvaddr;	/* Last user fault */
	unsigned long cp0_baduaddr;	/* Last kernel fault accessing USEG */
	unsigned long error_code;
	unsigned long trap_no;

	unsigned long mflags;
	unsigned long reg29;

	unsigned long single_step;
	unsigned long ss_nextcnt;

	unsigned long insn1_type;
	unsigned long addr1;
	unsigned long insn1;

	unsigned long insn2_type;
	unsigned long addr2;
	unsigned long insn2;

	mm_segment_t current_ds;
};

#define INIT_THREAD {						\
	.reg0			= 0,				\
	.reg2			= 0,				\
	.reg3			= 0,				\
	.reg12			= 0,				\
	.reg13			= 0,				\
	.reg14			= 0,				\
	.reg15			= 0,				\
	.reg16			= 0,				\
	.reg17			= 0,				\
	.reg18			= 0,				\
	.reg19			= 0,				\
	.reg20			= 0,				\
	.reg21			= 0,				\
	.cp0_psr		= 0,				\
	.error_code		= 0,				\
	.trap_no		= 0,				\
}

#define kstk_tos(tsk)		\
	((unsigned long)task_stack_page(tsk) + THREAD_SIZE - 32)
#define task_pt_regs(tsk)	((struct pt_regs *)kstk_tos(tsk) - 1)

#define KSTK_EIP(tsk)		(task_pt_regs(tsk)->cp0_epc)
#define KSTK_ESP(tsk)		(task_pt_regs(tsk)->regs[29])

#endif /* _ASM_SCORE_PROCESSOR_H */

Filemanager

Name Type Size Permission Actions
Kbuild File 340 B 0644
asm-offsets.h File 35 B 0644
asmmacro.h File 2.48 KB 0644
atomic.h File 187 B 0644
bitops.h File 266 B 0644
bug.h File 578 B 0644
bugs.h File 154 B 0644
cache.h File 199 B 0644
cacheflush.h File 1.63 KB 0644
checksum.h File 5.61 KB 0644
cmpxchg.h File 1.02 KB 0644
delay.h File 567 B 0644
device.h File 162 B 0644
div64.h File 158 B 0644
dma.h File 171 B 0644
elf.h File 2.84 KB 0644
emergency-restart.h File 206 B 0644
exec.h File 181 B 0644
fixmap.h File 2.38 KB 0644
ftrace.h File 90 B 0644
futex.h File 158 B 0644
hardirq.h File 166 B 0644
hw_irq.h File 90 B 0644
io.h File 212 B 0644
irq.h File 794 B 0644
irq_regs.h File 258 B 0644
irqflags.h File 1.9 KB 0644
kdebug.h File 162 B 0644
kmap_types.h File 178 B 0644
linkage.h File 189 B 0644
local.h File 158 B 0644
local64.h File 33 B 0644
mmu.h File 157 B 0644
mmu_context.h File 2.68 KB 0644
module.h File 949 B 0644
page.h File 2.84 KB 0644
pci.h File 81 B 0644
percpu.h File 162 B 0644
pgalloc.h File 1.81 KB 0644
pgtable-bits.h File 990 B 0644
pgtable.h File 7.29 KB 0644
processor.h File 2.39 KB 0644
ptrace.h File 749 B 0644
scoreregs.h File 1.4 KB 0644
segment.h File 513 B 0644
setup.h File 1.01 KB 0644
shmparam.h File 170 B 0644
string.h File 327 B 0644
switch_to.h File 323 B 0644
syscalls.h File 229 B 0644
thread_info.h File 2.55 KB 0644
timex.h File 216 B 0644
tlb.h File 538 B 0644
tlbflush.h File 3.02 KB 0644
topology.h File 170 B 0644
uaccess.h File 10.78 KB 0644
ucontext.h File 34 B 0644
unaligned.h File 174 B 0644
user.h File 437 B 0644