diff options
Diffstat (limited to 'kern/mach_clock.c')
-rw-r--r-- | kern/mach_clock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/mach_clock.c b/kern/mach_clock.c index 71cd583..d67897b 100644 --- a/kern/mach_clock.c +++ b/kern/mach_clock.c @@ -34,6 +34,8 @@ * Clock primitives. */ +#include <string.h> + #include <mach/boolean.h> #include <mach/machine.h> #include <mach/time_value.h> @@ -491,7 +493,7 @@ void mapable_time_init() if (kmem_alloc_wired(kernel_map, (vm_offset_t *) &mtime, PAGE_SIZE) != KERN_SUCCESS) panic("mapable_time_init"); - bzero((char *)mtime, PAGE_SIZE); + memset(mtime, 0, PAGE_SIZE); update_mapped_time(&time); } |