26 lines
588 B
C
26 lines
588 B
C
/*
|
|
* svcall.h
|
|
*
|
|
* Copyright (c) 2022 Semidrive Semiconductor.
|
|
* All rights reserved.
|
|
*
|
|
* Description: SV call header file.
|
|
*
|
|
* Revision History:
|
|
* -----------------
|
|
*/
|
|
|
|
#ifndef ARM_V7R_SVCALL_H_
|
|
#define ARM_V7R_SVCALL_H_
|
|
|
|
/* sys call 0: save the current context according to the provided register array. */
|
|
#define SYS_save_context (0)
|
|
|
|
/* sys call 1: restore the full context according to the provided register array. */
|
|
#define SYS_restore_context (1)
|
|
|
|
/* sys call 2: switch the context. */
|
|
#define SYS_switch_context (2)
|
|
|
|
#endif /* ARM_V7R_SVCALL_H_ */
|