summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/sparc64/counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sparc64/sparc64/counter.c')
-rw-r--r--sys/sparc64/sparc64/counter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/counter.c b/sys/sparc64/sparc64/counter.c
index d90b89f..19bffef 100644
--- a/sys/sparc64/sparc64/counter.c
+++ b/sys/sparc64/sparc64/counter.c
@@ -83,8 +83,8 @@ sparc64_counter_init(bus_space_tag_t tag, bus_space_handle_t handle,
bus_space_write_8(tag, handle, offset + CTR_CT1 + CTR_LIMIT,
COUNTER_MASK);
/* Register as a time counter. */
- tc = malloc(sizeof(*tc), M_DEVBUF, 0);
- sc = malloc(sizeof(*sc), M_DEVBUF, 0);
+ tc = malloc(sizeof(*tc), M_DEVBUF, M_WAITOK);
+ sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK);
sc->sc_tag = tag;
sc->sc_handle = handle;
sc->sc_offset = offset + CTR_CT0;
OpenPOWER on IntegriCloud