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>
|
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* itron/include/rtems/itron/task.h, itron/src/def_cyc.c,
|
* 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 int host_errno(void);
|
||||||
extern void fix_syscall_errno(void);
|
extern void fix_syscall_errno(void);
|
||||||
extern size_t malloc_free_space(void);
|
extern size_t malloc_free_space(void);
|
||||||
|
extern void open_dev_console(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Prototypes required to install newlib reentrancy user extension
|
* Prototypes required to install newlib reentrancy user extension
|
||||||
|
|||||||
@@ -132,7 +132,8 @@ scandir(dirname, namelist, select, dcomp)
|
|||||||
}
|
}
|
||||||
closedir(dirp);
|
closedir(dirp);
|
||||||
if (nitems && dcomp != NULL){
|
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;
|
*namelist = names;
|
||||||
return(nitems);
|
return(nitems);
|
||||||
|
|||||||
@@ -35,21 +35,26 @@ static void CPU_usage_Per_thread_handler(
|
|||||||
#endif
|
#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
|
* rtems_cpu_usage_reset
|
||||||
*/
|
*/
|
||||||
void rtems_cpu_usage_reset( void )
|
void rtems_cpu_usage_reset( void )
|
||||||
{
|
{
|
||||||
#ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
|
#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 );
|
_TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset );
|
||||||
_Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
|
_Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
|
||||||
#else
|
#else
|
||||||
extern uint32_t CPU_usage_Ticks_at_last_reset;
|
|
||||||
|
|
||||||
CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot;
|
CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler);
|
rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler);
|
||||||
|
|||||||
@@ -555,7 +555,6 @@ rtems_monitor_task(
|
|||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
extern rtems_tcb * _Thread_Executing;
|
|
||||||
rtems_monitor_command_entry_t *command;
|
rtems_monitor_command_entry_t *command;
|
||||||
|
|
||||||
debugee = _Thread_Executing;
|
debugee = _Thread_Executing;
|
||||||
|
|||||||
@@ -53,8 +53,6 @@ int serdbg_init_dbg
|
|||||||
static boolean is_initialized = FALSE;
|
static boolean is_initialized = FALSE;
|
||||||
|
|
||||||
rtems_status_code rc = RTEMS_SUCCESSFUL;
|
rtems_status_code rc = RTEMS_SUCCESSFUL;
|
||||||
extern void set_debug_traps(void);
|
|
||||||
extern void breakpoint(void);
|
|
||||||
|
|
||||||
if (is_initialized) {
|
if (is_initialized) {
|
||||||
return RTEMS_SUCCESSFUL;
|
return RTEMS_SUCCESSFUL;
|
||||||
|
|||||||
@@ -174,6 +174,11 @@ int getDebugChar
|
|||||||
| received character |
|
| received character |
|
||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Assumed to be provided by the BSP
|
||||||
|
*/
|
||||||
|
extern void set_debug_traps(void);
|
||||||
|
extern void breakpoint(void);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -38,9 +38,10 @@
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
in_cksum(m, len)
|
in_cksum(
|
||||||
register struct mbuf *m;
|
struct mbuf *m,
|
||||||
register int len;
|
int len
|
||||||
|
)
|
||||||
{
|
{
|
||||||
u_char junk;
|
u_char junk;
|
||||||
register u_short *w;
|
register u_short *w;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user