Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/stand libsa now needs ioctl to support media w...
details: https://anonhg.NetBSD.org/src/rev/3fc355b11f0f
branches: trunk
changeset: 365802:3fc355b11f0f
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Mon Apr 25 15:12:07 2022 +0000
description:
libsa now needs ioctl to support media with large sectors. Provide
missing functions.
libsa defines files[] array itself, just reference it.
This also adds another global variable that tracks the root
filesystem module.
diffstat:
sys/arch/x68k/stand/boot/conf.c | 4 +---
sys/arch/x68k/stand/xxboot/Makefile.xxboot | 6 +++---
sys/arch/x68k/stand/xxboot/xx.c | 10 +++++++++-
3 files changed, 13 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 04e98b116cff -r 3fc355b11f0f sys/arch/x68k/stand/boot/conf.c
--- a/sys/arch/x68k/stand/boot/conf.c Mon Apr 25 15:06:34 2022 +0000
+++ b/sys/arch/x68k/stand/boot/conf.c Mon Apr 25 15:12:07 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.11 2016/06/25 14:35:58 isaki Exp $ */
+/* $NetBSD: conf.c,v 1.12 2022/04/25 15:12:07 mlelstv Exp $ */
/*
* Copyright (c) 2001 Minoura Makoto
@@ -84,5 +84,3 @@
};
int n_netif_drivers = sizeof(netif_drivers) / sizeof(netif_drivers[0]);
-
-struct open_file files[SOPEN_MAX];
diff -r 04e98b116cff -r 3fc355b11f0f sys/arch/x68k/stand/xxboot/Makefile.xxboot
--- a/sys/arch/x68k/stand/xxboot/Makefile.xxboot Mon Apr 25 15:06:34 2022 +0000
+++ b/sys/arch/x68k/stand/xxboot/Makefile.xxboot Mon Apr 25 15:12:07 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.xxboot,v 1.19 2022/02/04 06:16:03 isaki Exp $
+# $NetBSD: Makefile.xxboot,v 1.20 2022/04/25 15:12:07 mlelstv Exp $
NOMAN= # defined
@@ -25,7 +25,7 @@
S= ${.CURDIR}/../../../../..
M= $S/arch/x68k
.PATH: ${.CURDIR}/..
-SRCS= boot.S bootmain.c conf.c xx.c
+SRCS= boot.S bootmain.c xx.c
SRCS+= ashrdi3.S
SRCS+= ashldi3.S
SRCS+= memcpy.S
@@ -65,7 +65,7 @@
CPPFLAGS+= -DLIBSA_NO_TWIDDLE
CPPFLAGS+= -DUSTAR_SECT_PER_CYL=30
SRCS+= open.c close.c read.c lseek.c loadfile.c loadfile_aout.c alloc.c
-SRCS+= errno.c globals.c
+SRCS+= errno.c globals.c files.c
SRCS+= $(FS).c
SRCS+= ${BOOTSRCS}
diff -r 04e98b116cff -r 3fc355b11f0f sys/arch/x68k/stand/xxboot/xx.c
--- a/sys/arch/x68k/stand/xxboot/xx.c Mon Apr 25 15:06:34 2022 +0000
+++ b/sys/arch/x68k/stand/xxboot/xx.c Mon Apr 25 15:12:07 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xx.c,v 1.4 2020/08/16 06:43:43 isaki Exp $ */
+/* $NetBSD: xx.c,v 1.5 2022/04/25 15:12:07 mlelstv Exp $ */
/*
* Copyright (c) 2010 MINOURA Makoto.
@@ -72,3 +72,11 @@
*rsize = size;
return 0;
}
+
+int
+xxioctl(struct open_file *f, u_long cmd, void *data)
+{
+
+ return ENOTTY;
+}
+
Home |
Main Index |
Thread Index |
Old Index