├── .clang-format ├── .devcontainer ├── Dockerfile └── devcontainer.json ├── .editorconfig ├── .gitattributes ├── .github └── workflows │ ├── auto-approve.yml │ └── ci.yml ├── .gitignore ├── .gitmodules ├── ARCHITECTURE.md ├── DEBUG.md ├── IDEAS.md ├── LICENSE.md ├── Makefile ├── README.md ├── fs └── hello.txt ├── kernel ├── arch.h ├── bootelf.S ├── build.mk ├── hinavm.c ├── hinavm.h ├── interrupt.c ├── interrupt.h ├── ipc.c ├── ipc.h ├── main.c ├── main.h ├── memory.c ├── memory.h ├── printk.c ├── printk.h ├── riscv32 │ ├── asm.h │ ├── asmdefs.h │ ├── boot.S │ ├── build.mk │ ├── debug.c │ ├── debug.h │ ├── handler.S │ ├── handler.h │ ├── include │ │ └── arch_types.h │ ├── kernel.ld.template │ ├── libgcc.a │ ├── mp.c │ ├── mp.h │ ├── plic.c │ ├── plic.h │ ├── setup.c │ ├── switch.S │ ├── switch.h │ ├── task.c │ ├── trap.c │ ├── trap.h │ ├── uart.c │ ├── uart.h │ ├── usercopy.S │ ├── usercopy.h │ ├── vm.c │ └── vm.h ├── syscall.c ├── syscall.h ├── task.c ├── task.h ├── wasmvm.c └── wasmvm.h ├── libs ├── common │ ├── backtrace.c │ ├── backtrace.h │ ├── build.mk │ ├── ctype.h │ ├── elf.h │ ├── endian.h │ ├── error.c │ ├── error.h │ ├── hinavm_types.h │ ├── ipcstub.h │ ├── list.c │ ├── list.h │ ├── message.c │ ├── message.h │ ├── print.h │ ├── riscv32 │ │ ├── backtrace.c │ │ └── build.mk │ ├── string.c │ ├── string.h │ ├── symbol_table.S │ ├── types.h │ ├── ubsan.c │ ├── ubsan.h │ ├── vprintf.c │ ├── vprintf.h │ └── wasm.h ├── kernel │ ├── build.mk │ └── wasm │ │ ├── build.mk │ │ ├── include │ │ ├── assert.h │ │ ├── platform_internal.h │ │ ├── stdatomic.h │ │ ├── stdbool.h │ │ ├── stddef.h │ │ ├── stdint.h │ │ └── string.h │ │ └── platform.c ├── user │ ├── build.mk │ ├── dmabuf.c │ ├── dmabuf.h │ ├── driver.c │ ├── driver.h │ ├── init.c │ ├── ipc.c │ ├── ipc.h │ ├── malloc.c │ ├── malloc.h │ ├── mmio.h │ ├── printf.c │ ├── riscv32 │ │ ├── arch_mmio.h │ │ ├── arch_syscall.h │ │ ├── build.mk │ │ ├── start.S │ │ └── user.ld.template │ ├── syscall.c │ ├── syscall.h │ ├── task.c │ ├── task.h │ ├── virtio │ │ ├── build.mk │ │ ├── virtio.h │ │ ├── virtio_mmio.c │ │ └── virtio_mmio.h │ └── xkcd_rand.h └── wasm │ ├── build.mk │ ├── ipc.h │ ├── string.c │ └── string.h ├── messages.idl ├── mk ├── executable.mk ├── lib.mk └── wasm.mk ├── servers ├── crack │ ├── build.mk │ ├── main.c │ └── shellcode.S ├── echo │ ├── build.mk │ └── main.c ├── fs │ ├── block.c │ ├── block.h │ ├── build.mk │ ├── fs.c │ ├── fs.h │ ├── main.c │ └── main.h ├── hello │ ├── build.mk │ └── main.c ├── hello_hinavm │ ├── build.mk │ └── main.c ├── pong │ ├── build.mk │ └── main.c ├── proxy │ ├── build.mk │ └── main.c ├── shell │ ├── build.mk │ ├── command.c │ ├── command.h │ ├── fs.c │ ├── fs.h │ ├── http.c │ ├── http.h │ └── main.c ├── tcpip │ ├── arp.c │ ├── arp.h │ ├── build.mk │ ├── checksum.h │ ├── device.c │ ├── device.h │ ├── dhcp.c │ ├── dhcp.h │ ├── dns.c │ ├── dns.h │ ├── ethernet.c │ ├── ethernet.h │ ├── ipv4.c │ ├── ipv4.h │ ├── main.c │ ├── main.h │ ├── mbuf.c │ ├── mbuf.h │ ├── tcp.c │ ├── tcp.h │ ├── udp.c │ └── udp.h ├── virtio_blk │ ├── build.mk │ ├── main.c │ └── virtio_blk.h ├── virtio_net │ ├── build.mk │ ├── main.c │ └── virtio_net.h ├── vm │ ├── bootfs.c │ ├── bootfs.h │ ├── bootfs_image.S │ ├── build.mk │ ├── main.c │ ├── page_fault.c │ ├── page_fault.h │ ├── pm.c │ ├── pm.h │ ├── task.c │ └── task.h ├── wasm_ping │ ├── build.mk │ └── main.c └── wasm_webapi │ ├── build.mk │ └── main.c ├── tests ├── conftest.py └── test_commands.py └── tools ├── clang-format-align-trailing-comments-kludge.patch ├── coreutils.py ├── embed_symbols.py ├── generate_gdbinit.py ├── generate_ipcstub.py ├── generate_program_name.py ├── generate_user_ld_params.py ├── merge_compile_commands_json.py ├── mkbootfs.py ├── mkhinafs.py ├── print_build_info.py ├── requirements.txt └── update_file_if_changed.py /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.clang-format -------------------------------------------------------------------------------- /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.devcontainer/Dockerfile -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.h linguist-language=C 2 | -------------------------------------------------------------------------------- /.github/workflows/auto-approve.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.github/workflows/auto-approve.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/.gitmodules -------------------------------------------------------------------------------- /ARCHITECTURE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/ARCHITECTURE.md -------------------------------------------------------------------------------- /DEBUG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/DEBUG.md -------------------------------------------------------------------------------- /IDEAS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/IDEAS.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/LICENSE.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/README.md -------------------------------------------------------------------------------- /fs/hello.txt: -------------------------------------------------------------------------------- 1 | Hello World from HinaFS! 2 | -------------------------------------------------------------------------------- /kernel/arch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/arch.h -------------------------------------------------------------------------------- /kernel/bootelf.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/bootelf.S -------------------------------------------------------------------------------- /kernel/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/build.mk -------------------------------------------------------------------------------- /kernel/hinavm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/hinavm.c -------------------------------------------------------------------------------- /kernel/hinavm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/hinavm.h -------------------------------------------------------------------------------- /kernel/interrupt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/interrupt.c -------------------------------------------------------------------------------- /kernel/interrupt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/interrupt.h -------------------------------------------------------------------------------- /kernel/ipc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/ipc.c -------------------------------------------------------------------------------- /kernel/ipc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/ipc.h -------------------------------------------------------------------------------- /kernel/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/main.c -------------------------------------------------------------------------------- /kernel/main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/main.h -------------------------------------------------------------------------------- /kernel/memory.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/memory.c -------------------------------------------------------------------------------- /kernel/memory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/memory.h -------------------------------------------------------------------------------- /kernel/printk.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/printk.c -------------------------------------------------------------------------------- /kernel/printk.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/printk.h -------------------------------------------------------------------------------- /kernel/riscv32/asm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/asm.h -------------------------------------------------------------------------------- /kernel/riscv32/asmdefs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/asmdefs.h -------------------------------------------------------------------------------- /kernel/riscv32/boot.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/boot.S -------------------------------------------------------------------------------- /kernel/riscv32/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/build.mk -------------------------------------------------------------------------------- /kernel/riscv32/debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/debug.c -------------------------------------------------------------------------------- /kernel/riscv32/debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/debug.h -------------------------------------------------------------------------------- /kernel/riscv32/handler.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/handler.S -------------------------------------------------------------------------------- /kernel/riscv32/handler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/handler.h -------------------------------------------------------------------------------- /kernel/riscv32/include/arch_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/include/arch_types.h -------------------------------------------------------------------------------- /kernel/riscv32/kernel.ld.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/kernel.ld.template -------------------------------------------------------------------------------- /kernel/riscv32/libgcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/libgcc.a -------------------------------------------------------------------------------- /kernel/riscv32/mp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/mp.c -------------------------------------------------------------------------------- /kernel/riscv32/mp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/mp.h -------------------------------------------------------------------------------- /kernel/riscv32/plic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/plic.c -------------------------------------------------------------------------------- /kernel/riscv32/plic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/plic.h -------------------------------------------------------------------------------- /kernel/riscv32/setup.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/setup.c -------------------------------------------------------------------------------- /kernel/riscv32/switch.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/switch.S -------------------------------------------------------------------------------- /kernel/riscv32/switch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/switch.h -------------------------------------------------------------------------------- /kernel/riscv32/task.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/task.c -------------------------------------------------------------------------------- /kernel/riscv32/trap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/trap.c -------------------------------------------------------------------------------- /kernel/riscv32/trap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/trap.h -------------------------------------------------------------------------------- /kernel/riscv32/uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/uart.c -------------------------------------------------------------------------------- /kernel/riscv32/uart.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/uart.h -------------------------------------------------------------------------------- /kernel/riscv32/usercopy.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/usercopy.S -------------------------------------------------------------------------------- /kernel/riscv32/usercopy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/usercopy.h -------------------------------------------------------------------------------- /kernel/riscv32/vm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/vm.c -------------------------------------------------------------------------------- /kernel/riscv32/vm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/riscv32/vm.h -------------------------------------------------------------------------------- /kernel/syscall.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/syscall.c -------------------------------------------------------------------------------- /kernel/syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/syscall.h -------------------------------------------------------------------------------- /kernel/task.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/task.c -------------------------------------------------------------------------------- /kernel/task.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/task.h -------------------------------------------------------------------------------- /kernel/wasmvm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/wasmvm.c -------------------------------------------------------------------------------- /kernel/wasmvm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/kernel/wasmvm.h -------------------------------------------------------------------------------- /libs/common/backtrace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/backtrace.c -------------------------------------------------------------------------------- /libs/common/backtrace.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/backtrace.h -------------------------------------------------------------------------------- /libs/common/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/build.mk -------------------------------------------------------------------------------- /libs/common/ctype.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/ctype.h -------------------------------------------------------------------------------- /libs/common/elf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/elf.h -------------------------------------------------------------------------------- /libs/common/endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/endian.h -------------------------------------------------------------------------------- /libs/common/error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/error.c -------------------------------------------------------------------------------- /libs/common/error.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | const char *err2str(int err); 3 | -------------------------------------------------------------------------------- /libs/common/hinavm_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/hinavm_types.h -------------------------------------------------------------------------------- /libs/common/ipcstub.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/ipcstub.h -------------------------------------------------------------------------------- /libs/common/list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/list.c -------------------------------------------------------------------------------- /libs/common/list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/list.h -------------------------------------------------------------------------------- /libs/common/message.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/message.c -------------------------------------------------------------------------------- /libs/common/message.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/message.h -------------------------------------------------------------------------------- /libs/common/print.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/print.h -------------------------------------------------------------------------------- /libs/common/riscv32/backtrace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/riscv32/backtrace.c -------------------------------------------------------------------------------- /libs/common/riscv32/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += backtrace.o 2 | -------------------------------------------------------------------------------- /libs/common/string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/string.c -------------------------------------------------------------------------------- /libs/common/string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/string.h -------------------------------------------------------------------------------- /libs/common/symbol_table.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/symbol_table.S -------------------------------------------------------------------------------- /libs/common/types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/types.h -------------------------------------------------------------------------------- /libs/common/ubsan.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/ubsan.c -------------------------------------------------------------------------------- /libs/common/ubsan.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/ubsan.h -------------------------------------------------------------------------------- /libs/common/vprintf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/vprintf.c -------------------------------------------------------------------------------- /libs/common/vprintf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/vprintf.h -------------------------------------------------------------------------------- /libs/common/wasm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/common/wasm.h -------------------------------------------------------------------------------- /libs/kernel/build.mk: -------------------------------------------------------------------------------- 1 | subdirs-y += wasm -------------------------------------------------------------------------------- /libs/kernel/wasm/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/kernel/wasm/build.mk -------------------------------------------------------------------------------- /libs/kernel/wasm/include/assert.h: -------------------------------------------------------------------------------- 1 | // dummy -------------------------------------------------------------------------------- /libs/kernel/wasm/include/platform_internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/kernel/wasm/include/platform_internal.h -------------------------------------------------------------------------------- /libs/kernel/wasm/include/stdatomic.h: -------------------------------------------------------------------------------- 1 | // dummy -------------------------------------------------------------------------------- /libs/kernel/wasm/include/stdbool.h: -------------------------------------------------------------------------------- 1 | // dummy -------------------------------------------------------------------------------- /libs/kernel/wasm/include/stddef.h: -------------------------------------------------------------------------------- 1 | // dummy -------------------------------------------------------------------------------- /libs/kernel/wasm/include/stdint.h: -------------------------------------------------------------------------------- 1 | // dummy -------------------------------------------------------------------------------- /libs/kernel/wasm/include/string.h: -------------------------------------------------------------------------------- 1 | // dummy -------------------------------------------------------------------------------- /libs/kernel/wasm/platform.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/kernel/wasm/platform.c -------------------------------------------------------------------------------- /libs/user/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/build.mk -------------------------------------------------------------------------------- /libs/user/dmabuf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/dmabuf.c -------------------------------------------------------------------------------- /libs/user/dmabuf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/dmabuf.h -------------------------------------------------------------------------------- /libs/user/driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/driver.c -------------------------------------------------------------------------------- /libs/user/driver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/driver.h -------------------------------------------------------------------------------- /libs/user/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/init.c -------------------------------------------------------------------------------- /libs/user/ipc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/ipc.c -------------------------------------------------------------------------------- /libs/user/ipc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/ipc.h -------------------------------------------------------------------------------- /libs/user/malloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/malloc.c -------------------------------------------------------------------------------- /libs/user/malloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/malloc.h -------------------------------------------------------------------------------- /libs/user/mmio.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | -------------------------------------------------------------------------------- /libs/user/printf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/printf.c -------------------------------------------------------------------------------- /libs/user/riscv32/arch_mmio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/riscv32/arch_mmio.h -------------------------------------------------------------------------------- /libs/user/riscv32/arch_syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/riscv32/arch_syscall.h -------------------------------------------------------------------------------- /libs/user/riscv32/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += start.o 2 | -------------------------------------------------------------------------------- /libs/user/riscv32/start.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/riscv32/start.S -------------------------------------------------------------------------------- /libs/user/riscv32/user.ld.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/riscv32/user.ld.template -------------------------------------------------------------------------------- /libs/user/syscall.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/syscall.c -------------------------------------------------------------------------------- /libs/user/syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/syscall.h -------------------------------------------------------------------------------- /libs/user/task.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/task.c -------------------------------------------------------------------------------- /libs/user/task.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/task.h -------------------------------------------------------------------------------- /libs/user/virtio/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += virtio_mmio.o 2 | -------------------------------------------------------------------------------- /libs/user/virtio/virtio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/virtio/virtio.h -------------------------------------------------------------------------------- /libs/user/virtio/virtio_mmio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/virtio/virtio_mmio.c -------------------------------------------------------------------------------- /libs/user/virtio/virtio_mmio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/virtio/virtio_mmio.h -------------------------------------------------------------------------------- /libs/user/xkcd_rand.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/user/xkcd_rand.h -------------------------------------------------------------------------------- /libs/wasm/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += string.wasm.o 2 | 3 | $(output): LD := $(WASMLD) -------------------------------------------------------------------------------- /libs/wasm/ipc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/wasm/ipc.h -------------------------------------------------------------------------------- /libs/wasm/string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/wasm/string.c -------------------------------------------------------------------------------- /libs/wasm/string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/libs/wasm/string.h -------------------------------------------------------------------------------- /messages.idl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/messages.idl -------------------------------------------------------------------------------- /mk/executable.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/mk/executable.mk -------------------------------------------------------------------------------- /mk/lib.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/mk/lib.mk -------------------------------------------------------------------------------- /mk/wasm.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/mk/wasm.mk -------------------------------------------------------------------------------- /servers/crack/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/crack/build.mk -------------------------------------------------------------------------------- /servers/crack/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/crack/main.c -------------------------------------------------------------------------------- /servers/crack/shellcode.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/crack/shellcode.S -------------------------------------------------------------------------------- /servers/echo/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o -------------------------------------------------------------------------------- /servers/echo/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/echo/main.c -------------------------------------------------------------------------------- /servers/fs/block.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/fs/block.c -------------------------------------------------------------------------------- /servers/fs/block.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/fs/block.h -------------------------------------------------------------------------------- /servers/fs/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o block.o fs.o 2 | -------------------------------------------------------------------------------- /servers/fs/fs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/fs/fs.c -------------------------------------------------------------------------------- /servers/fs/fs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/fs/fs.h -------------------------------------------------------------------------------- /servers/fs/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/fs/main.c -------------------------------------------------------------------------------- /servers/fs/main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/fs/main.h -------------------------------------------------------------------------------- /servers/hello/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o 2 | -------------------------------------------------------------------------------- /servers/hello/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/hello/main.c -------------------------------------------------------------------------------- /servers/hello_hinavm/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o 2 | -------------------------------------------------------------------------------- /servers/hello_hinavm/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/hello_hinavm/main.c -------------------------------------------------------------------------------- /servers/pong/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o 2 | -------------------------------------------------------------------------------- /servers/pong/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/pong/main.c -------------------------------------------------------------------------------- /servers/proxy/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o -------------------------------------------------------------------------------- /servers/proxy/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/proxy/main.c -------------------------------------------------------------------------------- /servers/shell/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/shell/build.mk -------------------------------------------------------------------------------- /servers/shell/command.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/shell/command.c -------------------------------------------------------------------------------- /servers/shell/command.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/shell/command.h -------------------------------------------------------------------------------- /servers/shell/fs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/shell/fs.c -------------------------------------------------------------------------------- /servers/shell/fs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/shell/fs.h -------------------------------------------------------------------------------- /servers/shell/http.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/shell/http.c -------------------------------------------------------------------------------- /servers/shell/http.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | void http_get(const char *url); 4 | -------------------------------------------------------------------------------- /servers/shell/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/shell/main.c -------------------------------------------------------------------------------- /servers/tcpip/arp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/arp.c -------------------------------------------------------------------------------- /servers/tcpip/arp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/arp.h -------------------------------------------------------------------------------- /servers/tcpip/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/build.mk -------------------------------------------------------------------------------- /servers/tcpip/checksum.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/checksum.h -------------------------------------------------------------------------------- /servers/tcpip/device.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/device.c -------------------------------------------------------------------------------- /servers/tcpip/device.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/device.h -------------------------------------------------------------------------------- /servers/tcpip/dhcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/dhcp.c -------------------------------------------------------------------------------- /servers/tcpip/dhcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/dhcp.h -------------------------------------------------------------------------------- /servers/tcpip/dns.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/dns.c -------------------------------------------------------------------------------- /servers/tcpip/dns.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/dns.h -------------------------------------------------------------------------------- /servers/tcpip/ethernet.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/ethernet.c -------------------------------------------------------------------------------- /servers/tcpip/ethernet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/ethernet.h -------------------------------------------------------------------------------- /servers/tcpip/ipv4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/ipv4.c -------------------------------------------------------------------------------- /servers/tcpip/ipv4.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/ipv4.h -------------------------------------------------------------------------------- /servers/tcpip/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/main.c -------------------------------------------------------------------------------- /servers/tcpip/main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/main.h -------------------------------------------------------------------------------- /servers/tcpip/mbuf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/mbuf.c -------------------------------------------------------------------------------- /servers/tcpip/mbuf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/mbuf.h -------------------------------------------------------------------------------- /servers/tcpip/tcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/tcp.c -------------------------------------------------------------------------------- /servers/tcpip/tcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/tcp.h -------------------------------------------------------------------------------- /servers/tcpip/udp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/udp.c -------------------------------------------------------------------------------- /servers/tcpip/udp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/tcpip/udp.h -------------------------------------------------------------------------------- /servers/virtio_blk/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o 2 | -------------------------------------------------------------------------------- /servers/virtio_blk/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/virtio_blk/main.c -------------------------------------------------------------------------------- /servers/virtio_blk/virtio_blk.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/virtio_blk/virtio_blk.h -------------------------------------------------------------------------------- /servers/virtio_net/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.o 2 | -------------------------------------------------------------------------------- /servers/virtio_net/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/virtio_net/main.c -------------------------------------------------------------------------------- /servers/virtio_net/virtio_net.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/virtio_net/virtio_net.h -------------------------------------------------------------------------------- /servers/vm/bootfs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/bootfs.c -------------------------------------------------------------------------------- /servers/vm/bootfs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/bootfs.h -------------------------------------------------------------------------------- /servers/vm/bootfs_image.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/bootfs_image.S -------------------------------------------------------------------------------- /servers/vm/build.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/build.mk -------------------------------------------------------------------------------- /servers/vm/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/main.c -------------------------------------------------------------------------------- /servers/vm/page_fault.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/page_fault.c -------------------------------------------------------------------------------- /servers/vm/page_fault.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/page_fault.h -------------------------------------------------------------------------------- /servers/vm/pm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/pm.c -------------------------------------------------------------------------------- /servers/vm/pm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/pm.h -------------------------------------------------------------------------------- /servers/vm/task.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/task.c -------------------------------------------------------------------------------- /servers/vm/task.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/vm/task.h -------------------------------------------------------------------------------- /servers/wasm_ping/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.wasm.o -------------------------------------------------------------------------------- /servers/wasm_ping/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/wasm_ping/main.c -------------------------------------------------------------------------------- /servers/wasm_webapi/build.mk: -------------------------------------------------------------------------------- 1 | objs-y += main.wasm.o -------------------------------------------------------------------------------- /servers/wasm_webapi/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/servers/wasm_webapi/main.c -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tests/test_commands.py -------------------------------------------------------------------------------- /tools/clang-format-align-trailing-comments-kludge.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/clang-format-align-trailing-comments-kludge.patch -------------------------------------------------------------------------------- /tools/coreutils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/coreutils.py -------------------------------------------------------------------------------- /tools/embed_symbols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/embed_symbols.py -------------------------------------------------------------------------------- /tools/generate_gdbinit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/generate_gdbinit.py -------------------------------------------------------------------------------- /tools/generate_ipcstub.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/generate_ipcstub.py -------------------------------------------------------------------------------- /tools/generate_program_name.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/generate_program_name.py -------------------------------------------------------------------------------- /tools/generate_user_ld_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/generate_user_ld_params.py -------------------------------------------------------------------------------- /tools/merge_compile_commands_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/merge_compile_commands_json.py -------------------------------------------------------------------------------- /tools/mkbootfs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/mkbootfs.py -------------------------------------------------------------------------------- /tools/mkhinafs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/mkhinafs.py -------------------------------------------------------------------------------- /tools/print_build_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/print_build_info.py -------------------------------------------------------------------------------- /tools/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/requirements.txt -------------------------------------------------------------------------------- /tools/update_file_if_changed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/r1ru/WasmOS/HEAD/tools/update_file_if_changed.py --------------------------------------------------------------------------------