/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2009 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#include <kern/processor.h>
+#if defined(__ppc__) /* On ppc, vm statistics are still 32-bit */
#define VM_STAT_INCR(event) \
MACRO_BEGIN \
- OSAddAtomic(1, (SInt32 *)(&(PROCESSOR_DATA(current_processor(), vm_stat).event))); \
+ OSAddAtomic(1, (SInt32 *) (&(PROCESSOR_DATA(current_processor(), vm_stat).event))); \
MACRO_END
+#else /* !(defined(__ppc__)) */
+#define VM_STAT_INCR(event) \
+MACRO_BEGIN \
+ OSAddAtomic64(1, (SInt64 *) (&(PROCESSOR_DATA(current_processor(), vm_stat).event))); \
+MACRO_END
+#endif /* !(defined(__ppc__)) */
#endif /* _KERN_HOST_STATISTICS_H_ */