Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/dev BUGFIX: It allocated only 44 bytes for ...
details: https://anonhg.NetBSD.org/src/rev/f5a819ca031c
branches: trunk
changeset: 519908:f5a819ca031c
user: takemura <takemura%NetBSD.org@localhost>
date: Sun Dec 30 12:57:41 2001 +0000
description:
BUGFIX: It allocated only 44 bytes for hpcapm while the device needed
764 bytes.
it was really terrible.
diffstat:
sys/arch/hpcmips/dev/hpcapm.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 3a7e53559695 -r f5a819ca031c sys/arch/hpcmips/dev/hpcapm.c
--- a/sys/arch/hpcmips/dev/hpcapm.c Sun Dec 30 12:46:10 2001 +0000
+++ b/sys/arch/hpcmips/dev/hpcapm.c Sun Dec 30 12:57:41 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcapm.c,v 1.8 2001/09/16 05:32:18 uch Exp $ */
+/* $NetBSD: hpcapm.c,v 1.9 2001/12/30 12:57:41 takemura Exp $ */
/*
* Copyright (c) 2000 Takemura Shin
@@ -79,10 +79,6 @@
static void hpcapm_cpu_idle(void *);
static void hpcapm_get_capabilities(void *, u_int *, u_int *);
-struct cfattach hpcapm_ca = {
- sizeof (struct device), hpcapm_match, hpcapm_attach
-};
-
struct apmhpc_softc {
struct device sc_dev;
void *sc_apmdev;
@@ -98,6 +94,10 @@
int minutes_left;
};
+struct cfattach hpcapm_ca = {
+ sizeof (struct apmhpc_softc), hpcapm_match, hpcapm_attach
+};
+
struct apm_accessops hpcapm_accessops = {
hpcapm_disconnect,
hpcapm_enable,
Home |
Main Index |
Thread Index |
Old Index