about summary refs log tree commit diff stats
path: root/init.linux
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-01 16:46:06 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-01 16:47:20 -0700
commit996402e8fdb30cc29735d9dd190ff78676d6c907 (patch)
tree072507f0fe76bd4102230123625477b2a0600e02 /init.linux
parent792451d1be576dfd35c2473cb4ede75ccca63782 (diff)
downloadmu-996402e8fdb30cc29735d9dd190ff78676d6c907.tar.gz
6604 - new app
https://archive.org/details/akkartik-2min-2020-07-01

In the process I found a bug, added a new syscall, and 'emulated' it.
Diffstat (limited to 'init.linux')
-rw-r--r--init.linux5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.linux b/init.linux
index 497b1ea1..9893f856 100644
--- a/init.linux
+++ b/init.linux
@@ -72,3 +72,8 @@ syscall_ioctl:  # fd/ebx: int, cmd/ecx: int, arg/edx: (addr _)
     b8/copy-to-eax 0x36/imm32
     cd/syscall 0x80/imm8
     c3/return
+
+syscall_nanosleep:
+    b8/copy-to-eax 0xa2/imm32  # 162
+    cd/syscall 0x80/imm8
+    c3/return