From 981b99faf208e2c7f6e2b83d73e1b89b669112ee Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 10 Aug 1999 16:41:44 +0000 Subject: Patch from Eric Valette and Emmanuel Raguet : - the dec21140 driver code has been hardened (various bug fixed) Emmanuel, - bug in the mcp750 init code have been fixed (interrupt stack/initial stack initialization), BSS correctly cleared (Eric V) - remote debugging over TCP/IP is nearly complete (berakpoints, backtrace, variables,...) (Eric V), - exception handling code has also been improved in order to fully support RDBG requirements (Eric V), --- .../libbsp/powerpc/motorola_powerpc/start/start.S | 38 ++++++---------------- 1 file changed, 10 insertions(+), 28 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/motorola_powerpc/start') diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/start/start.S b/c/src/lib/libbsp/powerpc/motorola_powerpc/start/start.S index 6751f59a0d..cc2dabd2c7 100644 --- a/c/src/lib/libbsp/powerpc/motorola_powerpc/start/start.S +++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/start/start.S @@ -1,35 +1,22 @@ /* - * arch/ppc/kernel/head.S + * start.S : RTEMS entry point * - * $Id$ - * - * PowerPC version - * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) + * Copyright (C) 1999 Eric Valette. valette@crf.canon.fr * - * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP - * Adapted for Power Macintosh by Paul Mackerras. - * Low-level exception handlers and MMU support - * rewritten by Paul Mackerras. - * Copyright (C) 1996 Paul Mackerras. - * MPC8xx modifications Copyright (C) 1997 Dan Malek (dmalek@jlc.net). - * Amiga/APUS changes by Jesper Skov (jskov@cygnus.co.uk). + * The license and distribution terms for this file may be + * found in found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. * - * This file contains the low-level support and setup for the - * PowerPC platform, including trap and interrupt dispatch. - * Also included here is low-level thread/task switch support. + * $Id$ * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - * */ #include #include #include +#include #include "asm.h" - + #define SYNC \ sync; \ isync @@ -91,8 +78,8 @@ enter_C_code: /* * stack = &__rtems_end + 4096 */ - addis r9,r0, __rtems_end+4096@ha - addi r9,r9, __rtems_end+4096@l + addis r9,r0, __rtems_end+(4096-CPU_MINIMUM_STACK_FRAME_SIZE)@ha + addi r9,r9, __rtems_end+(4096-CPU_MINIMUM_STACK_FRAME_SIZE)@l mr r1, r9 bl zero_bss /* @@ -142,8 +129,3 @@ _return_to_ppcbug: bl MMUon mtctr r30 bctr - - - - - -- cgit v1.2.3