From 99648958668d3a33ee57974479b36201fe303f34 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 Apr 2018 10:35:35 +0200 Subject: bsps: Move startup files to bsps Adjust build support files to new directory layout. This patch is a part of the BSP source reorganization. Update #3285. --- c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c | 97 ----------------------- 1 file changed, 97 deletions(-) delete mode 100644 c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c (limited to 'c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c') diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c deleted file mode 100644 index f47ca7d5be..0000000000 --- a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c +++ /dev/null @@ -1,97 +0,0 @@ -/* - * This routine does the bulk of the system initialization. - */ - -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - * - * SS555 port sponsored by Defence Research and Development Canada - Suffield - * Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca) - * - * Derived from c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c: - * - * Modifications for MBX860: - * Copyright (c) 1999, National Research Council of Canada - */ - -#include -#include -#include -#include - -#include -#include - -#include -#include - -SPR_RW(SPRG1) - -extern unsigned long intrStackPtr; - -/* - * Driver configuration parameters - */ -uint32_t bsp_clicks_per_usec; -uint32_t bsp_clock_speed; /* Serial clocks per second */ - -/* - * bsp_start() - * - * Board-specific initialization code. Called from the generic boot_card() - * function defined in rtems/c/src/lib/libbsp/shared/main.c. That function - * does some of the board independent initialization. It is called from the - * SS555 entry point _start() defined in - * rtems/c/src/lib/libbsp/powerpc/ss555/start/start.S - * - * _start() has set up a stack, has zeroed the .bss section, has set up the - * .data section from contents stored in ROM, has turned off interrupts, - * and placed the processor in the supervisor mode. boot_card() has left - * the processor in that state when bsp_start() was called. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: NONE - */ -void bsp_start(void) -{ - register unsigned char* intrStack; - - /* - * Get CPU identification dynamically. Note that the get_ppc_cpu_type() - * function stores the result in global variables so that it can be used - * later. - */ - get_ppc_cpu_type(); - get_ppc_cpu_revision(); - - /* - * Initialize some SPRG registers related to irq handling - */ - intrStack = (((unsigned char*)&intrStackPtr) - PPC_MINIMUM_STACK_FRAME_SIZE); - _write_SPRG1((unsigned int)intrStack); - - /* - * Install our own set of exception vectors - */ - initialize_exceptions(); - - /* - * initialize the device driver parameters - */ - bsp_clicks_per_usec = BSP_CRYSTAL_HZ / 4 / 1000000; - bsp_clock_speed = BSP_CLOCK_HZ; /* for SCI baud rate generator */ - rtems_counter_initialize_converter(BSP_CRYSTAL_HZ / 4); - - /* - * Initalize RTEMS IRQ system - */ - BSP_rtems_irq_mng_init(0); -} -- cgit v1.2.3