Rev 2131 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2131 | Rev 2291 | ||
---|---|---|---|
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 35... | Line 35... | ||
35 | #ifndef KERN_arm32_CYCLE_H_ |
35 | #ifndef KERN_arm32_CYCLE_H_ |
36 | #define KERN_arm32_CYCLE_H_ |
36 | #define KERN_arm32_CYCLE_H_ |
37 | 37 | ||
38 | static inline uint64_t get_cycle(void) |
38 | static inline uint64_t get_cycle(void) |
39 | { |
39 | { |
40 | /* TODO */ |
40 | // no such instruction on ARM to get count of cycles |
41 | return 0; |
41 | return 0; |
42 | } |
42 | } |
43 | 43 | ||
44 | #endif |
44 | #endif |
45 | 45 |