aboutsummaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-22 23:00:46 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-22 23:00:46 +0100
commit7f6b234625a53d2ceb9ec80dc0172aac1cedb358 (patch)
tree4fe10fcbe2d5e90a0e673259dc895f48a76e06cd /usr/src
parent224ed7b13ceadd05d27e61d3a0fdd34beb0c7745 (diff)
downloadfbos-7f6b234625a53d2ceb9ec80dc0172aac1cedb358.tar.gz
fbos-7f6b234625a53d2ceb9ec80dc0172aac1cedb358.zip
Enable exception handling from user mode
This allows us to actually catch system calls and start to run user space programs. That being said, the whole thing is still pretty brittle, and the scheduler is not quite there yet. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/buzz.S1
-rw-r--r--usr/src/fizz.S1
-rw-r--r--usr/src/fizzbuzz.S1
3 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/buzz.S b/usr/src/buzz.S
index d5f83c5..d4d9a4b 100644
--- a/usr/src/buzz.S
+++ b/usr/src/buzz.S
@@ -4,6 +4,7 @@
_start:
li a7, 1
la a0, buzz
+ li a1, 5
ecall
.Loop:
j .Loop
diff --git a/usr/src/fizz.S b/usr/src/fizz.S
index a6e8de2..ffabe82 100644
--- a/usr/src/fizz.S
+++ b/usr/src/fizz.S
@@ -4,6 +4,7 @@
_start:
li a7, 1
la a0, fizz
+ li a1, 5
ecall
.Loop:
j .Loop
diff --git a/usr/src/fizzbuzz.S b/usr/src/fizzbuzz.S
index 6974fbd..e78b424 100644
--- a/usr/src/fizzbuzz.S
+++ b/usr/src/fizzbuzz.S
@@ -4,6 +4,7 @@
_start:
li a7, 1
la a0, fizzbuzz
+ li a1, 9
ecall
.Loop:
j .Loop