summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/fsroot.c
diff options
context:
space:
mode:
authordzwdz2022-08-01 16:33:44 +0200
committerdzwdz2022-08-01 20:35:49 +0200
commit6a85c6ede66f723e1415552482e1c6640653efa2 (patch)
treebb3790a2d1f42d9cf3c69654f20cbd53cc929038 /src/kernel/arch/amd64/driver/fsroot.c
parent24a5f2bf46432aef70fd8d2ebf6c7ba94a6ce5a2 (diff)
amd64: /video/b device, provided by grub
Diffstat (limited to 'src/kernel/arch/amd64/driver/fsroot.c')
-rw-r--r--src/kernel/arch/amd64/driver/fsroot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/driver/fsroot.c b/src/kernel/arch/amd64/driver/fsroot.c
index 2feaf67..e0f5e77 100644
--- a/src/kernel/arch/amd64/driver/fsroot.c
+++ b/src/kernel/arch/amd64/driver/fsroot.c
@@ -58,11 +58,13 @@ static int handle(struct vfs_request *req) {
switch (id) {
case HANDLE_ROOT: {
// TODO document directory read format
+ // TODO don't hardcode
const char src[] =
"vga\0"
"com1\0"
"ps2\0"
- "ata/";
+ "ata/\0"
+ "video/";
return req_readcopy(req, src, sizeof src);
}
case HANDLE_VGA: