esp-idf/components/xtensa/baremetal/xtensa_rtos_bm.S
Darian Leung 6587e75251 xtensa: Add bare metal port stub functions for G0 build test
This commit adds "bare metal stubs" xtensa_rtos.h glue layer to mimic a bare
metal OS port. The bare metal stubs don't access any components outside of the
G0 group.
2023-04-18 15:51:38 +08:00

86 lines
2.5 KiB
ArmAsm

/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "xtensa_rtos.h"
/*
*******************************************************************************
* _bmxt_int_enter
* void _bmxt_int_enter(void)
*
* Implements the Xtensa RTOS porting layer's XT_RTOS_INT_ENTER function for
* Bare Metal. Currently just stubs that do nothing.
*
*******************************************************************************
*/
.globl _bmxt_int_enter
.type _bmxt_int_enter,@function
.align 4
_bmxt_int_enter:
ret
/*
*******************************************************************************
* _bmxt_int_exit
* void _bmxt_int_exit(void)
*
* Implements the Xtensa RTOS porting layer's XT_RTOS_INT_EXIT function for
* Bare Metal. Currently just stubs that do nothing.
*
*******************************************************************************
*/
.globl _bmxt_int_exit
.type _bmxt_int_exit,@function
.align 4
_bmxt_int_exit:
ret
/*
**********************************************************************************************************
* _bmxt_timer_int
* void _bmxt_timer_int(void)
*
* Implements the Xtensa RTOS porting layer's XT_RTOS_TIMER_INT function for Bare Metal.
* Called every timer interrupt. Currently just stubs that do nothing.
*
**********************************************************************************************************
*/
.globl _bmxt_timer_int
.type _bmxt_timer_int,@function
.align 4
_bmxt_timer_int:
ENTRY(16)
RET(16)
/*
**********************************************************************************************************
* _bmxt_task_coproc_state
* void _bmxt_task_coproc_state(void)
*
* Implements the Xtensa RTOS porting layer's XT_RTOS_CP_STATE function for Bare Metal.
*
* Currently just stubs that do nothing.
*
**********************************************************************************************************
*/
#if XCHAL_CP_NUM > 0
.globl _bmxt_task_coproc_state
.type _bmxt_task_coproc_state,@function
.align 4
_bmxt_task_coproc_state:
ret
#endif /* XCHAL_CP_NUM > 0 */