2016-11-08 23:36:50 +08:00
|
|
|
/*
|
2019-06-30 06:43:53 +08:00
|
|
|
* Copyright (c) 2019 Intel Corporation
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-11-08 23:36:50 +08:00
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
|
|
|
#define ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
2016-11-08 23:36:50 +08:00
|
|
|
|
2019-10-25 03:57:57 +08:00
|
|
|
#ifdef CONFIG_X86_64
|
2019-07-05 11:17:14 +08:00
|
|
|
#include <intel64/offsets_short_arch.h>
|
|
|
|
#else
|
2019-06-30 06:43:53 +08:00
|
|
|
#include <ia32/offsets_short_arch.h>
|
|
|
|
#endif
|
2016-11-08 23:36:50 +08:00
|
|
|
|
2019-09-19 07:30:39 +08:00
|
|
|
#define _thread_offset_to_flags \
|
|
|
|
(___thread_t_arch_OFFSET + ___thread_arch_t_flags_OFFSET)
|
|
|
|
|
2019-11-20 07:08:49 +08:00
|
|
|
#ifdef CONFIG_USERSPACE
|
|
|
|
#define _thread_offset_to_psp \
|
|
|
|
(___thread_t_arch_OFFSET + ___thread_arch_t_psp_OFFSET)
|
|
|
|
|
|
|
|
#define _thread_offset_to_ptables \
|
|
|
|
(___thread_t_arch_OFFSET + ___thread_arch_t_ptables_OFFSET)
|
|
|
|
#endif /* CONFIG_USERSPACE */
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
|