From 1b8f67f8cb6d9babcfda4d32483c102900d0d25d Mon Sep 17 00:00:00 2001 From: nyan Date: Mon, 13 Nov 2000 11:48:38 +0000 Subject: [PATCH] Initialize bus_space_handle_t with zero (for PC-98). --- sys/amd64/amd64/legacy.c | 4 ++-- sys/amd64/amd64/nexus.c | 4 ++-- sys/i386/i386/legacy.c | 4 ++-- sys/i386/i386/nexus.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c index 0db9cc516ff7..7caa0e936c08 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 0db9cc516ff7..7caa0e936c08 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 0db9cc516ff7..7caa0e936c08 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 0db9cc516ff7..7caa0e936c08 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;