xref: /linux/arch/um/include/shared/skas/stub-data.h (revision 542dc79f6ea601788704a79ff54283c2bea265e9)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 
4  * Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de)
5  * Copyright (C) 2005 Jeff Dike (jdike@karaya.com)
6  */
7 
8 #ifndef __STUB_DATA_H
9 #define __STUB_DATA_H
10 
11 #include <linux/compiler_types.h>
12 #include <as-layout.h>
13 
14 struct stub_data {
15 	unsigned long offset;
16 	int fd;
17 	long parent_err, child_err;
18 
19 	/* 128 leaves enough room for additional fields in the struct */
20 	unsigned char syscall_data[UM_KERN_PAGE_SIZE - 128] __aligned(16);
21 
22 	/* Stack for our signal handlers and for calling into . */
23 	unsigned char sigstack[UM_KERN_PAGE_SIZE] __aligned(UM_KERN_PAGE_SIZE);
24 };
25 
26 #endif
27