summaryrefslogtreecommitdiff
path: root/arch/um/include/shared/skas/stub-data.h
blob: 779d2a3bac5d9057f71c5a8cc39c4ddedad26557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0 */
/*

 * Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de)
 * Copyright (C) 2005 Jeff Dike (jdike@karaya.com)
 */

#ifndef __STUB_DATA_H
#define __STUB_DATA_H

#include <linux/compiler_types.h>
#include <as-layout.h>

struct stub_data {
	unsigned long offset;
	int fd;
	long parent_err, child_err;

	/* 128 leaves enough room for additional fields in the struct */
	unsigned char syscall_data[UM_KERN_PAGE_SIZE - 128] __aligned(16);

	/* Stack for our signal handlers and for calling into . */
	unsigned char sigstack[UM_KERN_PAGE_SIZE] __aligned(UM_KERN_PAGE_SIZE);
};

#endif