From 78aa0609b4e11e24fed195d5f508d61310509a9d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 11 Dec 2008 21:10:26 +0000 Subject: 2008-12-11 Joel Sherrill * cpu.c, cpu_asm.c: Remove warnings -- even if code is just temporary. --- cpukit/score/cpu/avr/ChangeLog | 4 ++++ cpukit/score/cpu/avr/cpu.c | 7 +++++-- cpukit/score/cpu/avr/cpu_asm.c | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/cpu/avr/ChangeLog b/cpukit/score/cpu/avr/ChangeLog index fa93b1385a..02321e9b82 100644 --- a/cpukit/score/cpu/avr/ChangeLog +++ b/cpukit/score/cpu/avr/ChangeLog @@ -1,3 +1,7 @@ +2008-12-11 Joel Sherrill + + * cpu.c, cpu_asm.c: Remove warnings -- even if code is just temporary. + 2008-11-26 Joel Sherrill * cpu.c, cpu_asm.c: Add debug printk() calls until the BSP/port can diff --git a/cpukit/score/cpu/avr/cpu.c b/cpukit/score/cpu/avr/cpu.c index 4ba9e6c008..445ec67e3e 100644 --- a/cpukit/score/cpu/avr/cpu.c +++ b/cpukit/score/cpu/avr/cpu.c @@ -1,8 +1,8 @@ /* - * XXX CPU Dependent Source + * AVR CPU Dependent Source * * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -16,6 +16,8 @@ #include #include +#include /* XXX remove me later */ + /* _CPU_Initialize * * This routine performs processor dependent initialization. @@ -180,4 +182,5 @@ void *_CPU_Thread_Idle_body( uint32_t ignored ) for( ; ; ) /* insert your "halt" instruction here */ ; + return (void *) 0; } diff --git a/cpukit/score/cpu/avr/cpu_asm.c b/cpukit/score/cpu/avr/cpu_asm.c index f864e5d51c..685c4247a0 100644 --- a/cpukit/score/cpu/avr/cpu_asm.c +++ b/cpukit/score/cpu/avr/cpu_asm.c @@ -6,7 +6,7 @@ * * NOTE: This is supposed to be a .S or .s file NOT a C file. * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -26,6 +26,8 @@ #include /* #include "cpu_asm.h> */ +#include /* XXX remove me later */ + /* * _CPU_Context_save_fp_context * @@ -118,7 +120,7 @@ void _CPU_Context_restore( * XXX document implementation including references if appropriate */ -void _ISR_Handler() +void _ISR_Handler(void) { /* * This discussion ignores a lot of the ugly details in a real -- cgit v1.2.3