summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/sys
diff options
context:
space:
mode:
authorAlexander Krutwig <alexander.krutwig@embedded-brains.de>2015-05-12 12:10:04 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-05-19 15:14:34 +0200
commit664f8446f4388a0c54b15239aec08210eb8b6eac (patch)
tree5d5bf95d5b2c315b47234b2323ecaf843751afdb /cpukit/score/include/sys
parent4117cd163977737a5e6633c7117d10aa194304cb (diff)
downloadrtems-664f8446f4388a0c54b15239aec08210eb8b6eac.tar.bz2
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.
Diffstat (limited to 'cpukit/score/include/sys')
-rw-r--r--cpukit/score/include/sys/timetc.h4
1 files changed, 2 insertions, 2 deletions
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. */