Make 'ls' command in bootloader work correctly on luna88k.
authoraoyama <aoyama@openbsd.org>
Sat, 11 Feb 2023 04:35:34 +0000 (04:35 +0000)
committeraoyama <aoyama@openbsd.org>
Sat, 11 Feb 2023 04:35:34 +0000 (04:35 +0000)
Now 'ls' against directory works fine.

Tested on LUNA-88K2 and nono emulator by me.

sys/arch/luna88k/stand/boot/conf.c

index 70c4646..411aad2 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: conf.c,v 1.4 2020/12/09 18:10:19 krw Exp $    */
+/*     $OpenBSD: conf.c,v 1.5 2023/02/11 04:35:34 aoyama Exp $ */
 /*     $NetBSD: conf.c,v 1.3 2013/01/16 15:46:20 tsutsui Exp $ */
 
 /*
@@ -97,7 +97,8 @@ int   n_netif_drivers = sizeof(netif_drivers) / sizeof(netif_drivers[0]);
        __CONCAT(fs,_read), \
        __CONCAT(fs,_write), \
        __CONCAT(fs,_seek), \
-       __CONCAT(fs,_stat) }
+       __CONCAT(fs,_stat), \
+       __CONCAT(fs,_readdir) }
 #ifdef SUPPORT_DISK
 struct fs_ops file_system_disk[] = {
        FS_OPS(ufs),