Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 47f2d81

Browse files
authored
Add interrupt enable/disable and soft timer - v0.1.1
1 parent f94ec73 commit 47f2d81

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libhexfive.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,27 @@
1212
See the License for the specific language governing permissions and
1313
limitations under the License.
1414
*/
15+
/* Copyright(C) 2018 Hex Five Security, Inc. - All Rights Reserved */
1516

1617
#include <unistd.h>
1718

1819
#ifndef LIBHEXFIVE_H_
1920
#define LIBHEXFIVE_H_
2021

2122
void ECALL_YIELD();
23+
void ECALL_WFI();
24+
2225
void ECALL_SEND(int, void *);
2326
void ECALL_RECV(int, void *);
2427

2528
void ECALL_TRP_VECT(int, void *);
2629
void ECALL_IRQ_VECT(int, void *);
2730

31+
void ECALL_CSRS_MIE();
32+
void ECALL_CSRC_MIE();
33+
34+
void ECALL_CSRW_MTIMECMP(uint64_t);
35+
2836
uint64_t ECALL_CSRR_MTIME();
2937
uint64_t ECALL_CSRR_MCYCLE();
3038
uint64_t ECALL_CSRR_MINSTR();

0 commit comments

Comments
 (0)