userland: support arch specific examples

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-20 00:00:00 +00:00
parent 454af5d03a
commit 07000300ab
12 changed files with 78 additions and 2 deletions

View File

@@ -0,0 +1 @@
../../Makefile

View File

@@ -0,0 +1,8 @@
#include <assert.h>
#include <inttypes.h>
int main(void) {
register uint32_t x0 __asm__ ("x0");
__asm__ ("mov x0, #1;" : : : "%x0");
assert(x0 == 1);
}

View File

@@ -0,0 +1 @@
COMMON_DIR = ../../..