summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/motorola_powerpc/start
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-08-10 16:41:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-08-10 16:41:44 +0000
commit981b99faf208e2c7f6e2b83d73e1b89b669112ee (patch)
tree1f2e2b431853a81be77417c1026c75c53e04d5ea /c/src/lib/libbsp/powerpc/motorola_powerpc/start
parentNew configuration files added by patch from (diff)
downloadrtems-981b99faf208e2c7f6e2b83d73e1b89b669112ee.tar.bz2
Patch from Eric Valette <valette@crf.canon.fr> and Emmanuel Raguet
<raguet@crf.canon.fr>: - 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),
Diffstat (limited to 'c/src/lib/libbsp/powerpc/motorola_powerpc/start')
-rw-r--r--c/src/lib/libbsp/powerpc/motorola_powerpc/start/start.S38
1 files changed, 10 insertions, 28 deletions
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 <libcpu/cpu.h>
#include <libcpu/io.h>
#include <rtems/score/targopts.h>
+#include <rtems/score/cpu.h>
#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
-
-
-
-
-