aboutsummaryrefslogtreecommitdiff
path: root/svc.S
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-30 14:36:31 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-30 14:36:31 +0100
commit26685f5203bc38cfa082b96182a406f4f7e6435a (patch)
tree5566b6812c7cc127da597a08a6824616b2aa5bb5 /svc.S
parentee8668f9fcd952e4952706789bdde7fd223dacb5 (diff)
downloadrpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.tar.gz
rpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.zip
implement getchar() and putchar() in terms of supervisor call
Diffstat (limited to 'svc.S')
-rw-r--r--svc.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/svc.S b/svc.S
new file mode 100644
index 0000000..65200d8
--- /dev/null
+++ b/svc.S
@@ -0,0 +1,5 @@
+.global svc
+
+svc:
+ svc #0
+ mov pc, lr