Skip to content

Commit d5933e4

Browse files
Merge branch 'main' into codex/fix-elf-execution-error-in-fsh-o03ydi
2 parents bda34f4 + 246f6dd commit d5933e4

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ QEMU_COMMON = \
8888
-device rtl8139,netdev=eth0 \
8989
-netdev user,hostfwd=tcp::5555-:22,id=eth0 \
9090
-device ahci,id=ahci \
91-
-drive if=none,format=raw,file=disk.img,id=nvmedisk \
92-
-device nvme,drive=nvmedisk,serial=FROSTNVME0 \
91+
-drive if=none,format=raw,file=disk.img,id=disk \
92+
-device ide-hd,drive=disk,bus=ahci.0 \
9393
-drive if=none,media=cdrom,format=raw,file=$(ISO_FILE),id=cd0 \
9494
-device ide-cd,drive=cd0,bus=ahci.1 \
9595
-rtc base=localtime,clock=host \

disk.img

0 Bytes
Binary file not shown.

source/kernel/C/userland.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ void enter_userland_at(uint64_t code_entry) {
334334
: "r"(stack_top), "r"(code_entry)
335335
: "memory", "rax", "rbx", "rcx", "rdx", "rsi", "rdi", "r8", "r9", "r10", "r11"
336336
);
337+
338+
return 0;
337339
}
338340

339341
int userland_exec(const char* path, int argc, const char* const* argv, const char* const* envp) {

0 commit comments

Comments
 (0)