mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Rename
This commit is contained in:
parent
6a4118e420
commit
93898a5baa
6 changed files with 1 additions and 1 deletions
2
test/opcodes/rom/Makefile
Normal file
2
test/opcodes/rom/Makefile
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
TOPDIR=../../..
|
||||
include ${TOPDIR}/test/common/makefile-rom.common
|
||||
12
test/opcodes/rom/rom.c
Normal file
12
test/opcodes/rom/rom.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "uvm32_target.h"
|
||||
#include "shared.h"
|
||||
|
||||
void main(void) {
|
||||
switch(syscall(SYSCALL_PICKTEST, 0, 0)) {
|
||||
case TEST1:
|
||||
asm("auipc t0, 0"); // copy pc into t0
|
||||
asm("auipc t1, 0"); // copy pc into t1
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
6
test/opcodes/rom/shared.h
Normal file
6
test/opcodes/rom/shared.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#define SYSCALL_BASE 0x200
|
||||
#define SYSCALL_PICKTEST SYSCALL_BASE+0
|
||||
|
||||
enum {
|
||||
TEST1,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue