2016-11-08 16:36:50 +01:00
|
|
|
/*
|
2019-06-30 00:43:53 +02:00
|
|
|
* Copyright (c) 2019 Intel Corporation
|
2017-01-19 02:01:01 +01:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-11-08 16:36:50 +01:00
|
|
|
*/
|
|
|
|
|
2018-09-14 19:43:44 +02:00
|
|
|
#ifndef ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
|
|
|
#define ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
|
2016-11-08 16:36:50 +01:00
|
|
|
|
2019-10-24 21:57:57 +02:00
|
|
|
#ifdef CONFIG_X86_64
|
2019-07-05 05:17:14 +02:00
|
|
|
#include <intel64/offsets_short_arch.h>
|
|
|
|
#else
|
2019-06-30 00:43:53 +02:00
|
|
|
#include <ia32/offsets_short_arch.h>
|
|
|
|
#endif
|
2016-11-08 16:36:50 +01:00
|
|
|
|
2019-09-19 01:30:39 +02:00
|
|
|
#define _thread_offset_to_flags \
|
|
|
|
(___thread_t_arch_OFFSET + ___thread_arch_t_flags_OFFSET)
|
|
|
|
|
2019-11-20 00:08:49 +01: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-14 19:43:44 +02:00
|
|
|
#endif /* ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
|