initial import of armv8-hello

This commit is contained in:
Jim Huang
2016-01-05 13:27:51 +08:00
commit 89bacd7f88
8 changed files with 159 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "reg.h"
int puts(const char *str)
{
while (*str)
*((unsigned int *) UART_BASE) = *str++;
return 0;
}
void main(void)
{
puts("Hello\n");
while (1);
}