diff options
Diffstat (limited to 'c/src/lib/libbsp/mips/genmongoosev')
9 files changed, 0 insertions, 121 deletions
diff --git a/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c b/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c index 6fa22a4b13..6fca49089c 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c +++ b/c/src/lib/libbsp/mips/genmongoosev/clock/clockdrv.c @@ -23,8 +23,6 @@ #define CLOCK_VECTOR MONGOOSEV_IRQ_TIMER1 #endif - - /* reset Timeout (TO) bit */ #define Clock_driver_support_at_tick() \ @@ -33,13 +31,11 @@ (MONGOOSEV_TIMER_CONTROL_COUNTER_ENABLE | MONGOOSEV_TIMER_CONTROL_INTERRUPT_ENABLE)); \ } while(0) - #define Clock_driver_support_install_isr( _new, _old ) \ do { \ _old = set_vector( _new, CLOCK_VECTOR, 1 ); \ } while(0) - #define Clock_driver_support_initialize_hardware() \ do { \ uint32_t _clicks = CPU_CLOCK_RATE_MHZ * rtems_configuration_get_microseconds_per_tick(); \ diff --git a/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c b/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c index 1ae41b405a..e837e142e4 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c +++ b/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c @@ -26,7 +26,6 @@ #define MG5UART_FUNCTIONS &mg5uart_fns_polled #endif - console_tbl Console_Port_Tbl[] = { { "/dev/com0", /* sDeviceName */ @@ -80,7 +79,6 @@ console_data Console_Port_Data[NUM_CONSOLE_PORTS]; rtems_device_minor_number Console_Port_Minor; - /* * printk() support that simply routes printk to stderr */ diff --git a/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h b/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h index 3beb8dc513..fbd54b3254 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h +++ b/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h @@ -28,7 +28,6 @@ extern "C" { #include <rtems/clockdrv.h> #include <libcpu/mongoose-v.h> - #ifndef CPU_CLOCK_RATE #define CLOCK_RATE 12000000 #endif @@ -36,15 +35,12 @@ extern "C" { #define CPU_CLOCK_RATE_HZ CLOCK_RATE #define CPU_CLOCK_RATE_MHZ (CLOCK_RATE/1000000) - /* * Useful defines set here so we can avoid duplicating them all over * creation. * */ - - /* * assertSoftwareInt defined in vectorisrs.c the prototype is here so * userspace code can get to it directly. @@ -52,10 +48,6 @@ extern "C" { extern void assertSoftwareInterrupt(uint32_t); - - - - /* * Define the time limits for RTEMS Test Suite test durations. * Long test and short test duration limits are provided. These @@ -74,10 +66,8 @@ extern void assertSoftwareInterrupt(uint32_t); * */ - #define CLOCK_VECTOR MONGOOSEV_IRQ_TIMER1 - #define MUST_WAIT_FOR_INTERRUPT 1 #if 1 @@ -85,8 +75,6 @@ extern void assertSoftwareInterrupt(uint32_t); #define Install_tm27_vector( handler ) \ (void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 ); - - #define Cause_tm27_intr() assertSoftwareInterrupt(0); #define Clear_tm27_intr() diff --git a/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h b/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h index d9f258a46e..ef0a44ebaf 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h +++ b/c/src/lib/libbsp/mips/genmongoosev/include/lr333x0.h @@ -174,7 +174,6 @@ IMPORT BOOL sysICset0; /* inst cache set 0 present ? */ #define LR33300_DC_SIZE 0x800 /* 33300 Data cache = 2Kbytes */ #define LR33310_DC_SIZE 0x1000 /* 33310 Data cache = 4Kbytes */ - #ifdef __cplusplus } #endif diff --git a/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h b/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h index 12776c8fc3..8d54133d64 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h +++ b/c/src/lib/libbsp/mips/genmongoosev/start/mg5.h @@ -9,8 +9,6 @@ */ #define PMON_ADDRESS 0xbfc00000 - - /* ** Mongoose V Peripheral Function Registers */ @@ -65,7 +63,6 @@ #define MG5_MAVN_RANGE_4_REG 0xfffe01d0 /* Range 4 */ #define MG5_MAVN_RANGE_5_REG 0xfffe01d4 /* Range 5 */ - /* ** Uart Specific Peripheral Function Registers */ @@ -76,7 +73,6 @@ #define MG5_UART_1_TX_REG 0xfffe01f8 #define MG5_UART_1_BAUD_REG 0xfffe01fc - /* ** Section 2: Bit definitions ** @@ -106,7 +102,6 @@ #define UART_CTSN_TEST_BIT 0x00000004 #define UART_RESET_BIT 0x00000002 - /* ** Interrupt Status/Cause/Mask register bits - from 31 to 0 */ @@ -138,7 +133,6 @@ #define EXTERN_INT_1_BIT 0x00000002 #define EXTERN_INT_0_BIT 0x00000001 - /* ** MAVN Range Bits */ @@ -152,7 +146,6 @@ #define MAVN_GLOBAL_WRITE_BIT 0x00000200 - #define MAVN_RANGE_0_READ_BIT 0x00000400 #define MAVN_RANGE_1_READ_BIT 0x00000800 #define MAVN_RANGE_2_READ_BIT 0x00001000 @@ -239,11 +232,6 @@ #define MAVN_START_ADDR_MASK 0xFFFFFE00 #define MAVN_PS_CODE_MASK 0x0000001F - - - - - /* lr33000.h - defines for LSI Logic LR33000 */ /* Define counter/timer register addresses */ @@ -268,11 +256,6 @@ /* lr33000.h */ - - - - - #define _LR33300_ #define M_SRAM 0xfffe0100 /* SRAM config reg */ @@ -340,12 +323,6 @@ /* _LR33300_ */ - - - - - - #define _ERNIE_CORE_ #define M_BIU 0xfffe0130 @@ -396,7 +373,6 @@ /* _ERNIE_CORE_ */ - /* Definitions for cache sizes */ #define LR33300_IC_SIZE 0x1000 /* 33300 Inst cache = 4Kbytes */ diff --git a/c/src/lib/libbsp/mips/genmongoosev/start/start.S b/c/src/lib/libbsp/mips/genmongoosev/start/start.S index 5c997d7449..3861510259 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/start/start.S +++ b/c/src/lib/libbsp/mips/genmongoosev/start/start.S @@ -37,19 +37,15 @@ #define LANGUAGE_ASSEMBLY #endif - #include <rtems/asm.h> #include "regs.S" #include "mg5.h" - - #ifdef __mips16 /* This file contains 32 bit assembly code. */ .set nomips16 #endif - /* ** defined by linkcmds, pointing to the start of the relocation target ** memory, referenced in this way so we can avoid defining it @@ -60,7 +56,6 @@ .text .align 2 - /********************************************************************** ** ** Function: _start @@ -100,7 +95,6 @@ _branch: mtc0 t0, C0_CAUSE nop - /* ** Call cpuinit. Masking used to call EEPROM address of _cpuinit. Label is RAM label. */ @@ -123,8 +117,6 @@ _branch: jal t0 nop - - /* ** Print 'b'. Show that we started. */ @@ -137,10 +129,6 @@ _branch: jal t0 nop - - - - li k0,0 li k1,0 @@ -157,8 +145,6 @@ _branch: srl t0,31 /* shift high bit down to bit 0 */ bnez t0,1f /* booting from above kseg1 */ - - /* ** Call IcacheFlush. Masking used to call EEPROM address of IcacheFlush. Label is RAM label. */ @@ -171,7 +157,6 @@ _branch: jal t0 nop - /* ** Print 'I'. Show that we flushed I cache. */ @@ -184,7 +169,6 @@ _branch: jal t0 nop - /* ** Call DcacheFlush. Masking used to call EEPROM address of DcacheFlush. Label is RAM label. */ @@ -196,7 +180,6 @@ _branch: jal t0 nop - /* ** Print 'D'. Show that we flushed D cache. */ @@ -210,7 +193,6 @@ _branch: jal t0 nop - 1: /* ** Print ' RTEMS b'. Show that we are booting. @@ -287,7 +269,6 @@ _branch: jal t0 nop - /* ** get the address of the _branch label above as it would appear in ** the relocated code @@ -335,7 +316,6 @@ relocate: nop .end _start - /********************************************************************** ** ** Function: _start_in_ram @@ -355,7 +335,6 @@ _start_in_ram: la gp, _gp /* set the global data pointer */ .end _start_in_ram - /********************************************************************** ** ** Function: zerobss @@ -405,7 +384,6 @@ zerobss: .end zerobss - /********************************************************************** ** ** Function: _init @@ -422,7 +400,6 @@ _initialize_rtems: jal putch_rom nop - /* ** Save the boot-time addresses of the I & D cache flush routines. ** Note, if we're running from RAM, we cannot manipulate the cache @@ -447,7 +424,6 @@ _initialize_rtems: nop .end _initialize_rtems - /********************************************************************** ** ** Function: _sys_exit @@ -461,8 +437,6 @@ _sys_exit: jal t0 .end _sys_exit - - /********************************************************************** ** ** function: putch @@ -506,7 +480,6 @@ putch_rom: j ra .end putch_rom - /********************************************************************** ** ** function: config_uart @@ -543,7 +516,6 @@ config_uart: j ra .end config_uart - /************************************************************* * CpuInit: * Perform CPU-specific initialization @@ -670,7 +642,6 @@ _cpuinit: li t0, 0x0 sw t0,M_SPEC2 - /* ** SPEC3 Setup ** SPEC3 will be used for the SONIC ethernet controller. @@ -797,14 +768,6 @@ _cpuinit: j ra .end _cpuinit - - - - - - - - /********************************************************************** ** ** Keep the boot-time address of the I & D cache reset code for @@ -816,8 +779,6 @@ _cpuinit: _promIcache: .word 0 _promDcache: .word 0 - - .globl promCopyIcacheFlush .ent promCopyIcacheFlush .set noreorder @@ -837,8 +798,6 @@ promCopyIcacheFlush: .set reorder .end promCopyIcacheFlush - - .globl promCopyDcacheFlush .ent promCopyDcacheFlush .set noreorder @@ -858,10 +817,6 @@ promCopyDcacheFlush: .set reorder .end promCopyDcacheFlush - - - - /******************************************************************************* ** Function Name: IcacheFlush ** Description: This functions flushes the on chip icache. @@ -900,7 +855,6 @@ icache_write: bltu t8, t9, icache_write /* check to see if we are done */ nop - /* ** De-isolate I cache */ @@ -912,13 +866,11 @@ icache_write: .set reorder .end IcacheFlush - /******************************************************** ** Function Name: DcacheFlush ** Description: This functions flushes the on chip dcache. */ - .ent DcacheFlush .set noreorder DcacheFlush: @@ -955,5 +907,4 @@ dcache_write: .set reorder .end DcacheFlush - /* EOF start.S */ diff --git a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c index 649cd64a0e..2447038991 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c +++ b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c @@ -25,9 +25,6 @@ #include <rtems/libcsupport.h> #include <libcpu/mongoose-v.h> - - - /* * The original table from the application and our copy of it with * some changes. @@ -77,8 +74,6 @@ void bsp_pretasking_hook(void) } - - /* * bsp_start * @@ -150,9 +145,6 @@ void bsp_start( void ) mips_install_isr_entries(); } - - - void clear_cache( void ) { extern void promCopyIcacheFlush(void); /* from start.S */ @@ -162,14 +154,10 @@ void clear_cache( void ) promCopyDcacheFlush(); } - - - /* //Structure filled in by get_mem_info. - struct s_mem { unsigned int size; @@ -177,7 +165,6 @@ struct s_mem unsigned int dcsize; }; - extern uint32_t _RamSize; void get_mem_info ( struct s_mem *mem ) diff --git a/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c b/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c index 4c6ee61736..e4b11b4426 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c +++ b/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c @@ -21,7 +21,6 @@ #include <stdio.h> #include <string.h> - /* We're going to call right down into the uart driver because we're @@ -38,13 +37,8 @@ extern int mg5uart_close(int major,int minor, void *arg); extern void mg5uart_write_polled(int minor, char c ); extern int mg5uart_inbyte_nonblocking_polled(int minor); - static int debugUartEnabled = 0; - - - - int mg5rdbgOpenGDBuart(int breakoninit) { struct termios t; @@ -80,7 +74,6 @@ int mg5rdbgOpenGDBuart(int breakoninit) gdbstub_add_memsegment(0x80b00000, 0x814fffff, MEMOPT_READABLE ); gdbstub_add_memsegment(0x81500000, 0x81ffffff, MEMOPT_READABLE | MEMOPT_WRITEABLE ); - if( breakoninit ) { printf("gdbstub: GDB stub entered, connect host debugger now\n"); @@ -97,16 +90,12 @@ int mg5rdbgOpenGDBuart(int breakoninit) return RTEMS_SUCCESSFUL; } - void mg5rdbgCloseGDBuart(void) { mg5uart_close(0,1,NULL); debugUartEnabled = 0; } - - - char getDebugChar (void) { if( debugUartEnabled ) @@ -120,16 +109,12 @@ char getDebugChar (void) return 0; } - void putDebugChar (char c) { if( debugUartEnabled ) return mg5uart_write_polled(1,c); } - - - /* { * initialize hardware pc and data breakpoints to quiet state* diff --git a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c index 24cf366dfb..110488e8b6 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c +++ b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c @@ -96,5 +96,4 @@ void Set_find_average_overhead( Timer_driver_Find_average_overhead = find_flag; } - /* eof */ |