powerpc/qemuppc: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-17 10:08:01 -05:00
parent b5548e592b
commit 3064411f94
3 changed files with 24 additions and 16 deletions

View File

@@ -1,8 +1,10 @@
/* /*
* This include file contains some definitions specific to the * This include file contains some definitions specific to the
* qemu powerpc Prep simulator * qemu powerpc Prep simulator
* */
* COPYRIGHT (c) 1989-2009.
/*
* COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -13,6 +15,8 @@
#ifndef _BSP_H #ifndef _BSP_H
#define _BSP_H #define _BSP_H
#ifndef ASM
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@@ -32,14 +36,15 @@ extern "C" {
#define BSP_Convert_decrementer( _value ) \ #define BSP_Convert_decrementer( _value ) \
((int) (((_value) * 10) / bsp_clicks_per_usec)) ((int) (((_value) * 10) / bsp_clicks_per_usec))
#if 0 /*
/* support for simulated clock tick */ * Prototypes for methods that are referenced from .S
Thread clock_driver_sim_idle_body(uintptr_t); */
#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body void cmain(void);
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* !ASM */
#endif #endif

View File

@@ -23,9 +23,13 @@
#include <bsp.h> #include <bsp.h>
#include <bsp/irq.h> #include <bsp/irq.h>
#include <bsp/irq-generic.h>
#include <bsp/vectors.h> #include <bsp/vectors.h>
int qemuppc_exception_handler( BSP_Exception_frame *frame, unsigned exception_number) static int qemuppc_exception_handler(
BSP_Exception_frame *frame,
unsigned exception_number
)
{ {
BSP_panic("Unexpected interrupt occured"); BSP_panic("Unexpected interrupt occured");
return 0; return 0;
@@ -37,21 +41,21 @@ int qemuppc_exception_handler( BSP_Exception_frame *frame, unsigned exception_nu
rtems_status_code bsp_interrupt_vector_enable( rtems_vector_number irqnum) rtems_status_code bsp_interrupt_vector_enable( rtems_vector_number irqnum)
{ {
/* FIXME: do something */ /* FIXME: do something */
return RTEMS_SUCCESSFUL; return RTEMS_SUCCESSFUL;
} }
rtems_status_code bsp_interrupt_vector_disable( rtems_vector_number irqnum) rtems_status_code bsp_interrupt_vector_disable( rtems_vector_number irqnum)
{ {
/* FIXME: do something */ /* FIXME: do something */
return RTEMS_SUCCESSFUL; return RTEMS_SUCCESSFUL;
} }
rtems_status_code bsp_interrupt_facility_initialize(void) rtems_status_code bsp_interrupt_facility_initialize(void)
{ {
/* Install exception handler */ /* Install exception handler */
if (ppc_exc_set_handler( ASM_EXT_VECTOR, qemuppc_exception_handler)) { if (ppc_exc_set_handler( ASM_EXT_VECTOR, qemuppc_exception_handler)) {
return RTEMS_IO_ERROR; return RTEMS_IO_ERROR;
} }
return RTEMS_SUCCESSFUL; return RTEMS_SUCCESSFUL;
} }

View File

@@ -37,7 +37,6 @@ extern unsigned char __sbss2_start[], __sbss2_end[];
extern unsigned char __sbss_start[], __sbss_end[]; extern unsigned char __sbss_start[], __sbss_end[];
extern unsigned char __bss_start[], __bss_end[]; extern unsigned char __bss_start[], __bss_end[];
void cmain (void) void cmain (void)
{ {
/* /*