forked from Imagelibrary/rtems
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/libcsupport.h, libcsupport/src/scandir.c, libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-monitor.c, libmisc/serdbg/serdbg.c, libmisc/serdbg/serdbg.h, libnetworking/netinet/in_cksum_powerpc.h, shttpd/compat_rtems.h: Fix warnings.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libcsupport/include/rtems/libcsupport.h, libcsupport/src/scandir.c,
|
||||
libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-monitor.c,
|
||||
libmisc/serdbg/serdbg.c, libmisc/serdbg/serdbg.h,
|
||||
libnetworking/netinet/in_cksum_powerpc.h, shttpd/compat_rtems.h: Fix
|
||||
warnings.
|
||||
|
||||
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* itron/include/rtems/itron/task.h, itron/src/def_cyc.c,
|
||||
|
||||
@@ -40,6 +40,7 @@ extern void libc_init(void);
|
||||
extern int host_errno(void);
|
||||
extern void fix_syscall_errno(void);
|
||||
extern size_t malloc_free_space(void);
|
||||
extern void open_dev_console(void);
|
||||
|
||||
/*
|
||||
* Prototypes required to install newlib reentrancy user extension
|
||||
|
||||
@@ -132,7 +132,8 @@ scandir(dirname, namelist, select, dcomp)
|
||||
}
|
||||
closedir(dirp);
|
||||
if (nitems && dcomp != NULL){
|
||||
qsort(names, nitems, sizeof(struct dirent *), dcomp);
|
||||
qsort(names, nitems, sizeof(struct dirent *),
|
||||
(int (*)(const void *, const void *)) dcomp);
|
||||
}
|
||||
*namelist = names;
|
||||
return(nitems);
|
||||
|
||||
@@ -35,21 +35,26 @@ static void CPU_usage_Per_thread_handler(
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* External data that is shared by cpu usage code but not declared in .h files.
|
||||
*/
|
||||
#ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
|
||||
extern struct timespec CPU_usage_Uptime_at_last_reset;
|
||||
#else
|
||||
extern uint32_t CPU_usage_Ticks_at_last_reset;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* rtems_cpu_usage_reset
|
||||
*/
|
||||
void rtems_cpu_usage_reset( void )
|
||||
{
|
||||
#ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
|
||||
extern struct timespec CPU_usage_Uptime_at_last_reset;
|
||||
|
||||
_TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset );
|
||||
_Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
|
||||
#else
|
||||
extern uint32_t CPU_usage_Ticks_at_last_reset;
|
||||
|
||||
CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot;
|
||||
|
||||
#endif
|
||||
|
||||
rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler);
|
||||
|
||||
@@ -555,7 +555,6 @@ rtems_monitor_task(
|
||||
|
||||
for (;;)
|
||||
{
|
||||
extern rtems_tcb * _Thread_Executing;
|
||||
rtems_monitor_command_entry_t *command;
|
||||
|
||||
debugee = _Thread_Executing;
|
||||
|
||||
@@ -53,8 +53,6 @@ int serdbg_init_dbg
|
||||
static boolean is_initialized = FALSE;
|
||||
|
||||
rtems_status_code rc = RTEMS_SUCCESSFUL;
|
||||
extern void set_debug_traps(void);
|
||||
extern void breakpoint(void);
|
||||
|
||||
if (is_initialized) {
|
||||
return RTEMS_SUCCESSFUL;
|
||||
|
||||
@@ -174,6 +174,11 @@ int getDebugChar
|
||||
| received character |
|
||||
\*=========================================================================*/
|
||||
|
||||
/*
|
||||
* Assumed to be provided by the BSP
|
||||
*/
|
||||
extern void set_debug_traps(void);
|
||||
extern void breakpoint(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -38,9 +38,10 @@
|
||||
|
||||
|
||||
int
|
||||
in_cksum(m, len)
|
||||
register struct mbuf *m;
|
||||
register int len;
|
||||
in_cksum(
|
||||
struct mbuf *m,
|
||||
int len
|
||||
)
|
||||
{
|
||||
u_char junk;
|
||||
register u_short *w;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <rtems.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/select.h>
|
||||
#include <netinet/in.h>
|
||||
#include <dirent.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
Reference in New Issue
Block a user