aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/include/tcb.h
blob: f0cce374460119d18f0fc7dc43581de32257367a (plain) (blame)
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
27
/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */

#ifndef ARCH_RISCV_TCB_H
#define ARCH_RISCV_TCB_H

/**
 * @file tcb.h
 * riscv64 definitions of arch-specific tcb data.
 */

/**
 * riscv-specific thread handling stuff.
 */
struct arch_tcbd {
	/** Extra scratch register. */
	long scratch;

	/** RPC stack page table leaf node. */
	struct vmem *rpc_leaf;

	/** Index into \p rpc_leaf with the lowest accessed page so far in a
	 * certain context. */
	int rpc_idx;
};

#endif /* ARCH_RISCV_TCB_H */