mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Rework host/target interface to use ecall and proper syscalls instead of CSRs
This commit is contained in:
parent
a305fce466
commit
751f068486
26 changed files with 360 additions and 364 deletions
|
|
@ -2,6 +2,18 @@
|
|||
#include "uvm32_target.h"
|
||||
|
||||
void main(void) {
|
||||
println("Hello world");
|
||||
for (int i=0;i<10;i++) {
|
||||
printd(i);
|
||||
}
|
||||
#if 0
|
||||
uint32_t c;
|
||||
while(c = getc()) {
|
||||
if (c != 0xFFFFFFFF) {
|
||||
print("Got: ");
|
||||
printx(c);
|
||||
println("");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue