Skip to content

Commit

Permalink
kernel/vfs: Force start from the root dir when overriding the disk ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed Mar 1, 2025
1 parent 76778d4 commit 54afcaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/vfs/vfs.asm
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ iterate_dir_path:
movz.8 r28, [r27]
sub r28, '0'
inc r27, 2
; force start from the root dir, since the disk id was overridden
mov r29, 1
rjmp iterate_dir_path_continue
iterate_dir_path_check_root:
; should we start from the root or the task's current dir?
cmp.8 [r27], '/'
Expand Down

0 comments on commit 54afcaa

Please sign in to comment.