From 664f8446f4388a0c54b15239aec08210eb8b6eac Mon Sep 17 00:00:00 2001 From: Alexander Krutwig Date: Tue, 12 May 2015 12:10:04 +0200 Subject: timecounter: Use uint32_t instead of u_int FreeBSD assumes that u_int is a 32-bit integer type. This is wrong for some 16-bit targets supported by RTEMS. Update #2271. --- cpukit/score/include/sys/timetc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/include/sys/timetc.h') diff --git a/cpukit/score/include/sys/timetc.h b/cpukit/score/include/sys/timetc.h index f553101b71..9d269a780b 100644 --- a/cpukit/score/include/sys/timetc.h +++ b/cpukit/score/include/sys/timetc.h @@ -28,7 +28,7 @@ */ struct timecounter; -typedef u_int timecounter_get_t(struct timecounter *); +typedef uint32_t timecounter_get_t(struct timecounter *); typedef void timecounter_pps_t(struct timecounter *); struct timecounter { @@ -45,7 +45,7 @@ struct timecounter { * events. Normal hardware does not need it but timecounters * which latch PPS in hardware (like sys/pci/xrpu.c) do. */ - u_int tc_counter_mask; + uint32_t tc_counter_mask; /* This mask should mask off any unimplemented bits. */ uint64_t tc_frequency; /* Frequency of the counter in Hz. */ -- cgit v1.2.3