404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.188.79: ~ $
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef __MIPS_UAPI_ASM_UCONTEXT_H
#define __MIPS_UAPI_ASM_UCONTEXT_H

/**
 * struct extcontext - extended context header structure
 * @magic:	magic value identifying the type of extended context
 * @size:	the size in bytes of the enclosing structure
 *
 * Extended context structures provide context which does not fit within struct
 * sigcontext. They are placed sequentially in memory at the end of struct
 * ucontext and struct sigframe, with each extended context structure beginning
 * with a header defined by this struct. The type of context represented is
 * indicated by the magic field. Userland may check each extended context
 * structure against magic values that it recognises. The size field allows any
 * unrecognised context to be skipped, allowing for future expansion. The end
 * of the extended context data is indicated by the magic value
 * END_EXTCONTEXT_MAGIC.
 */
struct extcontext {
	unsigned int		magic;
	unsigned int		size;
};

/**
 * struct msa_extcontext - MSA extended context structure
 * @ext:	the extended context header, with magic == MSA_EXTCONTEXT_MAGIC
 * @wr:		the most significant 64 bits of each MSA vector register
 * @csr:	the value of the MSA control & status register
 *
 * If MSA context is live for a task at the time a signal is delivered to it,
 * this structure will hold the MSA context of the task as it was prior to the
 * signal delivery.
 */
struct msa_extcontext {
	struct extcontext	ext;
#define MSA_EXTCONTEXT_MAGIC	0x784d5341	/* xMSA */

	unsigned long long	wr[32];
	unsigned int		csr;
};

#define END_EXTCONTEXT_MAGIC	0x78454e44	/* xEND */

/**
 * struct ucontext - user context structure
 * @uc_flags:
 * @uc_link:
 * @uc_stack:
 * @uc_mcontext:	holds basic processor state
 * @uc_sigmask:
 * @uc_extcontext:	holds extended processor state
 */
struct ucontext {
	/* Historic fields matching asm-generic */
	unsigned long		uc_flags;
	struct ucontext		*uc_link;
	stack_t			uc_stack;
	struct sigcontext	uc_mcontext;
	sigset_t		uc_sigmask;

	/* Extended context structures may follow ucontext */
	unsigned long long	uc_extcontext[0];
};

#endif /* __MIPS_UAPI_ASM_UCONTEXT_H */

Filemanager

Name Type Size Permission Actions
Kbuild File 123 B 0644
auxvec.h File 616 B 0644
bitfield.h File 766 B 0644
bitsperlong.h File 244 B 0644
break.h File 1.29 KB 0644
byteorder.h File 580 B 0644
cachectl.h File 800 B 0644
errno.h File 5.66 KB 0644
fcntl.h File 2.33 KB 0644
hwcap.h File 231 B 0644
inst.h File 27.22 KB 0644
ioctl.h File 781 B 0644
ioctls.h File 4.6 KB 0644
kvm.h File 7.54 KB 0644
kvm_para.h File 109 B 0644
mman.h File 4.24 KB 0644
msgbuf.h File 1.44 KB 0644
param.h File 476 B 0644
poll.h File 217 B 0644
posix_types.h File 880 B 0644
ptrace.h File 2.74 KB 0644
reg.h File 5.3 KB 0644
resource.h File 1.04 KB 0644
sembuf.h File 666 B 0644
setup.h File 183 B 0644
sgidefs.h File 1.03 KB 0644
shmbuf.h File 1.09 KB 0644
sigcontext.h File 2.53 KB 0644
siginfo.h File 3.13 KB 0644
signal.h File 4.12 KB 0644
socket.h File 3.33 KB 0644
sockios.h File 760 B 0644
stat.h File 2.87 KB 0644
statfs.h File 1.94 KB 0644
swab.h File 1.5 KB 0644
sysmips.h File 841 B 0644
termbits.h File 7.79 KB 0644
termios.h File 2.09 KB 0644
types.h File 922 B 0644
ucontext.h File 2.15 KB 0644
unistd.h File 45.04 KB 0644