blob: 60d99f94ec56d5eb309168d8aa5efb8b22edcb08 [file] [log] [blame]
/*
* Copyright (c) BayLibre SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_RISCV_STRUCTS_H_
#define ZEPHYR_INCLUDE_RISCV_STRUCTS_H_
/* Per CPU architecture specifics */
struct _cpu_arch {
#ifdef CONFIG_USERSPACE
unsigned long user_exc_sp;
unsigned long user_exc_tmp0;
unsigned long user_exc_tmp1;
#endif
#ifdef CONFIG_SMP
unsigned long hartid;
bool online;
#endif
#ifdef CONFIG_FPU_SHARING
atomic_ptr_val_t fpu_owner;
uint32_t fpu_state;
#endif
};
#endif /* ZEPHYR_INCLUDE_RISCV_STRUCTS_H_ */