Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
871 bytes
|
Rev | Line | |
---|
[442] | 1 | /////////////////////////////////////////////////////////////////////////////// |
---|
| 2 | // File : idbg.c |
---|
| 3 | // Date : May 2018 |
---|
| 4 | // Author : Alain Greiner <alain.greiner@lip6.fr> |
---|
| 5 | /////////////////////////////////////////////////////////////////////////////// |
---|
| 6 | // This single thread interactive debuger can be used to access and display |
---|
| 7 | // various kernel structures |
---|
| 8 | /////////////////////////////////////////////////////////////////////////////// |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | #include <stdlib.h> |
---|
| 12 | #include <stdio.h> |
---|
[444] | 13 | #include <almos-mkh.h> |
---|
[442] | 14 | |
---|
| 15 | /////////// |
---|
| 16 | void main() |
---|
| 17 | { |
---|
| 18 | unsigned long long cycle; |
---|
| 19 | |
---|
| 20 | get_cycle( &cycle ); |
---|
| 21 | printf( "\n[IDBG] starts at cycle %d\n", (unsigned int)cycle ); |
---|
| 22 | |
---|
| 23 | while (1) |
---|
| 24 | { |
---|
| 25 | |
---|
| 26 | /////// |
---|
| 27 | idbg(); |
---|
| 28 | /////// |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | get_cycle( &cycle ); |
---|
| 32 | printf( "\n[IDBG] exit at cycle %d\n", (unsigned int)cycle ); |
---|
| 33 | |
---|
| 34 | exit( EXIT_SUCCESS ); |
---|
| 35 | |
---|
| 36 | } // end main() |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.