Rev 2128 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2128 | Rev 2465 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * Copyright (c) 2006 Martin Decky |
2 | * Copyright (c) 2007 Michal Kebrt |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
Line 28... | Line 28... | ||
28 | 28 | ||
29 | /** @addtogroup arm32 |
29 | /** @addtogroup arm32 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
- | 33 | * @brief Count of CPU cycles. |
|
33 | */ |
34 | */ |
34 | 35 | ||
35 | #ifndef KERN_arm32_CYCLE_H_ |
36 | #ifndef KERN_arm32_CYCLE_H_ |
36 | #define KERN_arm32_CYCLE_H_ |
37 | #define KERN_arm32_CYCLE_H_ |
37 | 38 | ||
- | 39 | /** Returns count of CPU cycles. |
|
- | 40 | * |
|
- | 41 | * No such instruction on ARM to get count of cycles. |
|
- | 42 | * |
|
- | 43 | * @return Count of CPU cycles. |
|
- | 44 | */ |
|
38 | static inline uint64_t get_cycle(void) |
45 | static inline uint64_t get_cycle(void) |
39 | { |
46 | { |
40 | /* TODO */ |
- | |
41 | return 0; |
47 | return 0; |
42 | } |
48 | } |
43 | 49 | ||
44 | #endif |
50 | #endif |
45 | 51 |