LCOV - code coverage report
Current view: top level - zephyr/arch/riscv - structs.h Coverage Total Hit
Test: new.info Lines: 0.0 % 1 0
Test Date: 2025-10-20 12:20:01

            Line data    Source code
       1            0 : /*
       2              :  * Copyright (c) BayLibre SAS
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : 
       7              : #ifndef ZEPHYR_INCLUDE_RISCV_STRUCTS_H_
       8              : #define ZEPHYR_INCLUDE_RISCV_STRUCTS_H_
       9              : 
      10              : /* Per CPU architecture specifics */
      11              : struct _cpu_arch {
      12              : #ifdef CONFIG_USERSPACE
      13              :         unsigned long user_exc_sp;
      14              :         unsigned long user_exc_tmp0;
      15              :         unsigned long user_exc_tmp1;
      16              : #endif
      17              : #if defined(CONFIG_SMP) || (CONFIG_MP_MAX_NUM_CPUS > 1)
      18              :         unsigned long hartid;
      19              :         bool online;
      20              : #endif
      21              : #ifdef CONFIG_FPU_SHARING
      22              :         atomic_ptr_val_t fpu_owner;
      23              :         uint32_t fpu_state;
      24              : #endif
      25              : #if defined(CONFIG_CPP) && !defined(CONFIG_USERSPACE) &&                                           \
      26              :         !(defined(CONFIG_SMP) || (CONFIG_MP_MAX_NUM_CPUS > 1)) && !defined(CONFIG_FPU_SHARING)
      27              :         /* Empty struct has size 0 in C, size 1 in C++. Force them to be the same. */
      28              :         uint8_t unused_cpp_size_compatibility;
      29              : #endif
      30              : };
      31              : 
      32              : #if defined(CONFIG_CPP)
      33              : BUILD_ASSERT(sizeof(struct _cpu_arch) >= 1);
      34              : #endif
      35              : 
      36              : #endif /* ZEPHYR_INCLUDE_RISCV_STRUCTS_H_ */
        

Generated by: LCOV version 2.0-1