added working paging small kernel
This commit is contained in:
25
Tests/isa/Cprograms/test.S
Normal file
25
Tests/isa/Cprograms/test.S
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "riscv_test.h"
|
||||
#include "test_macros.h"
|
||||
|
||||
RVTEST_RV64U # Define TVM used by program.
|
||||
|
||||
# Test code region.
|
||||
RVTEST_CODE_BEGIN # Start of test code.
|
||||
RVTEST_PASS # Signal success.
|
||||
fail:
|
||||
RVTEST_FAIL
|
||||
RVTEST_CODE_END # End of test code.
|
||||
|
||||
# Input data section.
|
||||
# This section is optional, and this data is NOT saved in the output.
|
||||
.data
|
||||
.align 3
|
||||
testdata:
|
||||
.dword 41
|
||||
|
||||
# Output data section.
|
||||
RVTEST_DATA_BEGIN # Start of test output data region.
|
||||
.align 3
|
||||
result:
|
||||
.dword -1
|
||||
RVTEST_DATA_END # End of test output data region.
|
||||
Reference in New Issue
Block a user