summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-11-13 11:48:38 +0000
committernyan <nyan@FreeBSD.org>2000-11-13 11:48:38 +0000
commit1bad2bb46b062ade7bb8b8d1cd6629fc1091f576 (patch)
tree2f49ae0b015a981b4fab33910818f12806abd529
parent3b748c2f8b9ee227ca7aad3397ce3561b56c1ec1 (diff)
downloadFreeBSD-src-1bad2bb46b062ade7bb8b8d1cd6629fc1091f576.zip
FreeBSD-src-1bad2bb46b062ade7bb8b8d1cd6629fc1091f576.tar.gz
Initialize bus_space_handle_t with zero (for PC-98).
-rw-r--r--sys/amd64/amd64/legacy.c4
-rw-r--r--sys/amd64/amd64/nexus.c4
-rw-r--r--sys/i386/i386/legacy.c4
-rw-r--r--sys/i386/i386/nexus.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c
index 0db9cc5..7caa0e9 100644
--- a/sys/amd64/amd64/legacy.c
+++ b/sys/amd64/amd64/legacy.c
@@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
- rv->r_bushandle =
- malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
+ rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
+ M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;
diff --git a/sys/amd64/amd64/nexus.c b/sys/amd64/amd64/nexus.c
index 0db9cc5..7caa0e9 100644
--- a/sys/amd64/amd64/nexus.c
+++ b/sys/amd64/amd64/nexus.c
@@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
- rv->r_bushandle =
- malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
+ rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
+ M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;
diff --git a/sys/i386/i386/legacy.c b/sys/i386/i386/legacy.c
index 0db9cc5..7caa0e9 100644
--- a/sys/i386/i386/legacy.c
+++ b/sys/i386/i386/legacy.c
@@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
- rv->r_bushandle =
- malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
+ rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
+ M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;
diff --git a/sys/i386/i386/nexus.c b/sys/i386/i386/nexus.c
index 0db9cc5..7caa0e9 100644
--- a/sys/i386/i386/nexus.c
+++ b/sys/i386/i386/nexus.c
@@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
- rv->r_bushandle =
- malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
+ rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
+ M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;
OpenPOWER on IntegriCloud