URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/rtos/ecos-2.0/packages/hal/mn10300/sim
- from Rev 27 to Rev 174
- ↔ Reverse comparison
Rev 27 → Rev 174
/v2_0/cdl/hal_mn10300_am31_sim.cdl
0,0 → 1,172
# ==================================================================== |
# |
# hal_mn10300_am31_sim.cdl |
# |
# MN10300/AM31 SIM HAL package configuration data |
# |
# ==================================================================== |
#####ECOSGPLCOPYRIGHTBEGIN#### |
## ------------------------------------------- |
## This file is part of eCos, the Embedded Configurable Operating System. |
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
## |
## eCos 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 or (at your option) any later version. |
## |
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
## WARRANTY; without even the implied warranty of MERCHANTABILITY or |
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
## for more details. |
## |
## You should have received a copy of the GNU General Public License along |
## with eCos; if not, write to the Free Software Foundation, Inc., |
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
## |
## As a special exception, if other files instantiate templates or use macros |
## or inline functions from this file, or you compile this file and link it |
## with other works to produce a work based on this file, this file does not |
## by itself cause the resulting work to be covered by the GNU General Public |
## License. However the source code for this file must still be made available |
## in accordance with section (3) of the GNU General Public License. |
## |
## This exception does not invalidate any other reasons why a work based on |
## this file might be covered by the GNU General Public License. |
## |
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
## at http://sources.redhat.com/ecos/ecos-license/ |
## ------------------------------------------- |
#####ECOSGPLCOPYRIGHTEND#### |
# ==================================================================== |
######DESCRIPTIONBEGIN#### |
# |
# Author(s): jskov |
# Original data: bartv |
# Contributors: |
# Date: 1999-11-02 |
# |
#####DESCRIPTIONEND#### |
# |
# ==================================================================== |
|
cdl_package CYGPKG_HAL_MN10300_AM31_SIM { |
display "AM31 minimal simulator" |
parent CYGPKG_HAL_MN10300 |
requires CYGPKG_HAL_MN10300_AM31 |
define_header hal_mn10300_am31_sim.h |
include_dir cyg/hal |
description " |
The minimal simulator HAL package is provided for use when |
only a simple simulation of the processor architecture is |
desired, as opposed to detailed simulation of any specific |
board. In particular it is not possible to simulate any of |
the I/O devices, so device drivers cannot be used." |
|
compile hal_diag.c plf_misc.c |
|
define_proc { |
puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H <pkgconf/hal_mn10300_am31.h>" |
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_mn10300_am31_sim.h>" |
|
puts $::cdl_header "#define CYG_HAL_MN10300_MN103002" |
} |
|
cdl_component CYG_HAL_STARTUP { |
display "Startup type" |
flavor data |
legal_values {"RAM"} |
default_value {"RAM"} |
no_define |
define -file system.h CYG_HAL_STARTUP |
description " |
Only supports RAM startup." |
} |
|
# Real-time clock/counter specifics |
cdl_component CYGNUM_HAL_RTC_CONSTANTS { |
display "Real-time clock constants." |
flavor none |
|
cdl_option CYGNUM_HAL_RTC_NUMERATOR { |
display "Real-time clock numerator" |
flavor data |
calculated 1000000000 |
} |
cdl_option CYGNUM_HAL_RTC_DENOMINATOR { |
display "Real-time clock denominator" |
flavor data |
calculated 100 |
} |
# Isn't a nice way to handle freq requirement! |
cdl_option CYGNUM_HAL_RTC_PERIOD { |
display "Real-time clock period" |
flavor data |
calculated 999 |
} |
} |
|
cdl_component CYGBLD_GLOBAL_OPTIONS { |
display "Global build options" |
flavor none |
parent CYGPKG_NONE |
description " |
Global build options including control over |
compiler flags, linker flags and choice of toolchain." |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX { |
display "Global command prefix" |
flavor data |
no_define |
default_value { "mn10300-elf" } |
description " |
This option specifies the command prefix used when |
invoking the build tools." |
} |
|
cdl_option CYGBLD_GLOBAL_CFLAGS { |
display "Global compiler flags" |
flavor data |
no_define |
default_value { "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" } |
description " |
This option controls the global compiler flags which |
are used to compile all packages by |
default. Individual packages may define |
options which override these global flags." |
} |
|
cdl_option CYGBLD_GLOBAL_LDFLAGS { |
display "Global linker flags" |
flavor data |
no_define |
default_value { "-g -nostdlib -Wl,--gc-sections -Wl,-static" } |
description " |
This option controls the global linker flags. Individual |
packages may define options which override these global flags." |
} |
} |
|
cdl_component CYGHWR_MEMORY_LAYOUT { |
display "Memory layout" |
flavor data |
no_define |
calculated { "mn10300_am31_sim_ram" } |
|
cdl_option CYGHWR_MEMORY_LAYOUT_LDI { |
display "Memory layout linker script fragment" |
flavor data |
no_define |
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI |
calculated { "<pkgconf/mlt_mn10300_am31_sim_ram.ldi>" } |
} |
|
cdl_option CYGHWR_MEMORY_LAYOUT_H { |
display "Memory layout header file" |
flavor data |
no_define |
define -file system.h CYGHWR_MEMORY_LAYOUT_H |
calculated { "<pkgconf/mlt_mn10300_am31_sim_ram.h>" } |
} |
} |
} |
/v2_0/include/plf_intr.h
0,0 → 1,70
#ifndef CYGONCE_HAL_PLF_INTR_H |
#define CYGONCE_HAL_PLF_INTR_H |
|
//========================================================================== |
// |
// plf_intr.h |
// |
// MN10300 sim interrupt and clock support |
// |
//========================================================================== |
//####ECOSGPLCOPYRIGHTBEGIN#### |
// ------------------------------------------- |
// This file is part of eCos, the Embedded Configurable Operating System. |
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
// |
// eCos 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 or (at your option) any later version. |
// |
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
// WARRANTY; without even the implied warranty of MERCHANTABILITY or |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
// for more details. |
// |
// You should have received a copy of the GNU General Public License along |
// with eCos; if not, write to the Free Software Foundation, Inc., |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
// |
// As a special exception, if other files instantiate templates or use macros |
// or inline functions from this file, or you compile this file and link it |
// with other works to produce a work based on this file, this file does not |
// by itself cause the resulting work to be covered by the GNU General Public |
// License. However the source code for this file must still be made available |
// in accordance with section (3) of the GNU General Public License. |
// |
// This exception does not invalidate any other reasons why a work based on |
// this file might be covered by the GNU General Public License. |
// |
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
// at http://sources.redhat.com/ecos/ecos-license/ |
// ------------------------------------------- |
//####ECOSGPLCOPYRIGHTEND#### |
//========================================================================== |
//#####DESCRIPTIONBEGIN#### |
// |
// Author(s): jlarmour |
// Contributors: jlarmour |
// Date: 1999-09-09 |
// Purpose: Define Interrupt support |
// Description: The macros defined here provide the HAL APIs for handling |
// interrupts and the clock for the simulator. This file |
// is empty since none are required! |
// |
// Usage: |
// #include <cyg/hal/plf_intr.h> |
// ... |
// |
// |
//####DESCRIPTIONEND#### |
// |
//========================================================================== |
|
|
//-------------------------------------------------------------------------- |
|
// Nothing to do |
|
//-------------------------------------------------------------------------- |
#endif // ifndef CYGONCE_HAL_PLF_INTR_H |
// End of plf_intr.h |
/v2_0/include/pkgconf/mlt_mn10300_am31_sim_ram.h
0,0 → 1,17
// eCos memory layout - Fri Oct 20 08:25:16 2000 |
|
// This is a generated file - do not edit |
|
#ifndef __ASSEMBLER__ |
#include <cyg/infra/cyg_type.h> |
#include <stddef.h> |
|
#endif |
#define CYGMEM_REGION_ram (0x48000000) |
#define CYGMEM_REGION_ram_SIZE (0x400000) |
#define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W) |
#ifndef __ASSEMBLER__ |
extern char CYG_LABEL_NAME (__heap1) []; |
#endif |
#define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1)) |
#define CYGMEM_SECTION_heap1_SIZE (0x48400000 - (size_t) CYG_LABEL_NAME (__heap1)) |
/v2_0/include/pkgconf/mlt_mn10300_am31_sim_ram.ldi
0,0 → 1,26
// eCos memory layout - Fri Oct 20 08:25:16 2000 |
|
// This is a generated file - do not edit |
|
#include <cyg/infra/cyg_type.inc> |
|
MEMORY |
{ |
ram : ORIGIN = 0x48000000, LENGTH = 0x400000 |
} |
|
SECTIONS |
{ |
SECTIONS_BEGIN |
SECTION_rom_vectors (ram, 0x48000000, LMA_EQ_VMA) |
SECTION_text (ram, ALIGN (0x1), LMA_EQ_VMA) |
SECTION_fini (ram, ALIGN (0x1), LMA_EQ_VMA) |
SECTION_rodata (ram, ALIGN (0x1), LMA_EQ_VMA) |
SECTION_rodata1 (ram, ALIGN (0x1), LMA_EQ_VMA) |
SECTION_fixup (ram, ALIGN (0x1), LMA_EQ_VMA) |
SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA) |
SECTION_data (ram, ALIGN (0x4), LMA_EQ_VMA) |
SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA) |
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); |
SECTIONS_END |
} |
/v2_0/include/pkgconf/mlt_mn10300_am31_sim_ram.mlt
0,0 → 1,12
version 0 |
region ram 48000000 400000 0 ! |
section rom_vectors 0 1 0 1 1 1 1 1 48000000 48000000 text text ! |
section text 0 1 0 1 0 1 0 1 fini fini ! |
section fini 0 1 0 1 0 1 0 1 rodata rodata ! |
section rodata 0 1 0 1 0 1 0 1 rodata1 rodata1 ! |
section rodata1 0 1 0 1 0 1 0 1 fixup fixup ! |
section fixup 0 1 0 1 0 1 0 1 gcc_except_table gcc_except_table ! |
section gcc_except_table 0 1 0 1 0 1 0 1 data data ! |
section data 0 4 0 1 0 1 0 1 bss bss ! |
section bss 0 4 0 1 0 1 0 1 heap1 heap1 ! |
section heap1 0 8 0 0 0 0 0 0 ! |
/v2_0/include/platform.inc
0,0 → 1,67
#ifndef CYGONCE_HAL_PLATFORM_INC |
#define CYGONCE_HAL_PLATFORM_INC |
##============================================================================= |
## |
## platform.inc |
## |
## AM31 simulator "board" assembler header file |
## |
##============================================================================= |
#####ECOSGPLCOPYRIGHTBEGIN#### |
## ------------------------------------------- |
## This file is part of eCos, the Embedded Configurable Operating System. |
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
## |
## eCos 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 or (at your option) any later version. |
## |
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
## WARRANTY; without even the implied warranty of MERCHANTABILITY or |
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
## for more details. |
## |
## You should have received a copy of the GNU General Public License along |
## with eCos; if not, write to the Free Software Foundation, Inc., |
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
## |
## As a special exception, if other files instantiate templates or use macros |
## or inline functions from this file, or you compile this file and link it |
## with other works to produce a work based on this file, this file does not |
## by itself cause the resulting work to be covered by the GNU General Public |
## License. However the source code for this file must still be made available |
## in accordance with section (3) of the GNU General Public License. |
## |
## This exception does not invalidate any other reasons why a work based on |
## this file might be covered by the GNU General Public License. |
## |
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
## at http://sources.redhat.com/ecos/ecos-license/ |
## ------------------------------------------- |
#####ECOSGPLCOPYRIGHTEND#### |
##============================================================================= |
#######DESCRIPTIONBEGIN#### |
## |
## Author(s): jlarmour |
## Contributors: jlarmour |
## Date: 1999-09-09 |
## Purpose: AM31 Simulator "board" definitions. |
## Description: This file contains various definitions and macros that are |
## required for writing assembly code for the am31 simulator. |
## Currently there are none |
## Usage: |
## #include <cyg/hal/platform.inc> |
## ... |
## |
## |
######DESCRIPTIONEND#### |
## |
##============================================================================= |
|
##----------------------------------------------------------------------------- |
|
# Nothing required |
|
#------------------------------------------------------------------------------ |
#endif // ifndef CYGONCE_HAL_PLATFORM_INC |
# end of platform.inc |
/v2_0/include/plf_io.h
0,0 → 1,65
#ifndef CYGONCE_PLF_IO_H |
#define CYGONCE_PLF_IO_H |
|
//============================================================================= |
// |
// plf_io.h |
// |
// Platform specific IO support |
// |
//============================================================================= |
//####ECOSGPLCOPYRIGHTBEGIN#### |
// ------------------------------------------- |
// This file is part of eCos, the Embedded Configurable Operating System. |
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
// |
// eCos 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 or (at your option) any later version. |
// |
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
// WARRANTY; without even the implied warranty of MERCHANTABILITY or |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
// for more details. |
// |
// You should have received a copy of the GNU General Public License along |
// with eCos; if not, write to the Free Software Foundation, Inc., |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
// |
// As a special exception, if other files instantiate templates or use macros |
// or inline functions from this file, or you compile this file and link it |
// with other works to produce a work based on this file, this file does not |
// by itself cause the resulting work to be covered by the GNU General Public |
// License. However the source code for this file must still be made available |
// in accordance with section (3) of the GNU General Public License. |
// |
// This exception does not invalidate any other reasons why a work based on |
// this file might be covered by the GNU General Public License. |
// |
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
// at http://sources.redhat.com/ecos/ecos-license/ |
// ------------------------------------------- |
//####ECOSGPLCOPYRIGHTEND#### |
//============================================================================= |
//#####DESCRIPTIONBEGIN#### |
// |
// Author(s): nickg |
// Contributors: |
// Date: 2001-08-02 |
// Purpose: am31_sim platform IO support |
// Description: |
// Usage: #include <cyg/hal/plf_io.h> |
// |
//####DESCRIPTIONEND#### |
// |
//============================================================================= |
|
#include <pkgconf/hal.h> |
|
//----------------------------------------------------------------------------- |
|
// Nothing here |
|
//----------------------------------------------------------------------------- |
// end of plf_io.h |
#endif // CYGONCE_PLF_IO_H |
/v2_0/include/hal_diag.h
0,0 → 1,105
#ifndef CYGONCE_HAL_HAL_DIAG_H |
#define CYGONCE_HAL_HAL_DIAG_H |
|
/*============================================================================= |
// |
// hal_diag.h |
// |
// HAL Support for Kernel Diagnostic Routines |
// |
//============================================================================= |
//####ECOSGPLCOPYRIGHTBEGIN#### |
// ------------------------------------------- |
// This file is part of eCos, the Embedded Configurable Operating System. |
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
// |
// eCos 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 or (at your option) any later version. |
// |
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
// WARRANTY; without even the implied warranty of MERCHANTABILITY or |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
// for more details. |
// |
// You should have received a copy of the GNU General Public License along |
// with eCos; if not, write to the Free Software Foundation, Inc., |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
// |
// As a special exception, if other files instantiate templates or use macros |
// or inline functions from this file, or you compile this file and link it |
// with other works to produce a work based on this file, this file does not |
// by itself cause the resulting work to be covered by the GNU General Public |
// License. However the source code for this file must still be made available |
// in accordance with section (3) of the GNU General Public License. |
// |
// This exception does not invalidate any other reasons why a work based on |
// this file might be covered by the GNU General Public License. |
// |
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
// at http://sources.redhat.com/ecos/ecos-license/ |
// ------------------------------------------- |
//####ECOSGPLCOPYRIGHTEND#### |
//============================================================================= |
//#####DESCRIPTIONBEGIN#### |
// |
// Author(s): nickg |
// Contributors: nickg |
// Date: 1998-03-02 |
// Purpose: HAL Support for Kernel Diagnostic Routines |
// Description: Diagnostic routines for use during kernel development. |
// Usage: #include <cyg/hal/hal_diag.h> |
// |
//####DESCRIPTIONEND#### |
// |
//===========================================================================*/ |
|
#include <pkgconf/hal.h> |
|
#include <cyg/infra/cyg_type.h> |
|
/*---------------------------------------------------------------------------*/ |
/* Register addresses */ |
|
#define PAL_RESET 0x00 |
#define PAL_CPU_NR 0x04 |
#define PAL_INT 0x08 |
#define PAL_NR_CPU 0x0a |
|
#define PAL_READ_FIFO 0x10 |
#define PAL_READ_STATUS 0x14 |
#define PAL_WRITE_FIFO 0x18 |
#define PAL_WRITE_STATUS 0x1a |
|
#define OEA_DEV 0x31000000 |
|
/*---------------------------------------------------------------------------*/ |
|
#define HAL_DIAG_INIT() |
|
#define HAL_DIAG_WRITE_CHAR(_c_) \ |
{ \ |
volatile unsigned char *tty_buffer = \ |
(unsigned char*)(OEA_DEV + PAL_WRITE_FIFO); \ |
volatile unsigned char *tty_status = \ |
(unsigned char*)(OEA_DEV + PAL_WRITE_STATUS); \ |
if( _c_ != '\r' ) \ |
{ \ |
while( *tty_status == 0 ) continue; \ |
*tty_buffer = _c_; \ |
} \ |
} |
|
#define HAL_DIAG_READ_CHAR(_c_) \ |
{ \ |
volatile unsigned char *tty_buffer = \ |
(unsigned char*)(OEA_DEV + PAL_READ_FIFO); \ |
volatile unsigned char *tty_status = \ |
(unsigned char*)(OEA_DEV + PAL_READ_STATUS); \ |
while( *tty_status == 0 ) continue; \ |
_c_ = *tty_buffer; \ |
} |
|
/*---------------------------------------------------------------------------*/ |
/* end of hal_diag.h */ |
#endif /* CYGONCE_HAL_HAL_DIAG_H */ |
/v2_0/src/hal_diag.c
0,0 → 1,69
/*============================================================================= |
// |
// hal_diag.c |
// |
// HAL diagnostic output code |
// |
//============================================================================= |
//####ECOSGPLCOPYRIGHTBEGIN#### |
// ------------------------------------------- |
// This file is part of eCos, the Embedded Configurable Operating System. |
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
// |
// eCos 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 or (at your option) any later version. |
// |
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
// WARRANTY; without even the implied warranty of MERCHANTABILITY or |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
// for more details. |
// |
// You should have received a copy of the GNU General Public License along |
// with eCos; if not, write to the Free Software Foundation, Inc., |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
// |
// As a special exception, if other files instantiate templates or use macros |
// or inline functions from this file, or you compile this file and link it |
// with other works to produce a work based on this file, this file does not |
// by itself cause the resulting work to be covered by the GNU General Public |
// License. However the source code for this file must still be made available |
// in accordance with section (3) of the GNU General Public License. |
// |
// This exception does not invalidate any other reasons why a work based on |
// this file might be covered by the GNU General Public License. |
// |
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
// at http://sources.redhat.com/ecos/ecos-license/ |
// ------------------------------------------- |
//####ECOSGPLCOPYRIGHTEND#### |
//============================================================================= |
//#####DESCRIPTIONBEGIN#### |
// |
// Author(s): dsm |
// Contributors: dsm |
// Date: 1998-03-13 |
// Purpose: HAL diagnostic output |
// Description: Implementations of HAL diagnostic output support. |
// |
//####DESCRIPTIONEND#### |
// |
//===========================================================================*/ |
|
#include <pkgconf/hal.h> |
|
#include <cyg/hal/hal_diag.h> |
|
// diag channel implemented in header file on the MN10300 simulator |
|
void hal_diag_init(void) |
{ |
} |
|
void hal_diag_write_char(char c) |
{ |
} |
|
/*===========================================================================*/ |
/* EOF hal_diag.c */ |
|
/v2_0/src/plf_misc.c
0,0 → 1,77
//========================================================================== |
// |
// plf_misc.c |
// |
// HAL platform miscellaneous functions |
// |
//========================================================================== |
//####ECOSGPLCOPYRIGHTBEGIN#### |
// ------------------------------------------- |
// This file is part of eCos, the Embedded Configurable Operating System. |
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
// |
// eCos 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 or (at your option) any later version. |
// |
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
// WARRANTY; without even the implied warranty of MERCHANTABILITY or |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
// for more details. |
// |
// You should have received a copy of the GNU General Public License along |
// with eCos; if not, write to the Free Software Foundation, Inc., |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
// |
// As a special exception, if other files instantiate templates or use macros |
// or inline functions from this file, or you compile this file and link it |
// with other works to produce a work based on this file, this file does not |
// by itself cause the resulting work to be covered by the GNU General Public |
// License. However the source code for this file must still be made available |
// in accordance with section (3) of the GNU General Public License. |
// |
// This exception does not invalidate any other reasons why a work based on |
// this file might be covered by the GNU General Public License. |
// |
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
// at http://sources.redhat.com/ecos/ecos-license/ |
// ------------------------------------------- |
//####ECOSGPLCOPYRIGHTEND#### |
//========================================================================== |
//#####DESCRIPTIONBEGIN#### |
// |
// Author(s): nickg |
// Contributors: nickg, jlarmour |
// Date: 1999-09-09 |
// Purpose: HAL miscellaneous functions |
// Description: This file contains miscellaneous functions provided by the |
// HAL. |
// |
//####DESCRIPTIONEND#### |
// |
//========================================================================*/ |
|
#include <pkgconf/hal.h> |
|
#include <cyg/infra/cyg_type.h> // Base types |
|
#include <cyg/hal/hal_arch.h> // architectural definitions |
|
/*------------------------------------------------------------------------*/ |
|
void hal_platform_init(void) |
{ |
/* Nothing to do here */ |
} |
|
/*------------------------------------------------------------------------*/ |
/* Control C ISR support */ |
|
#if defined(CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT) |
|
struct Hal_SavedRegisters *hal_saved_interrupt_state; |
|
#endif |
|
/*------------------------------------------------------------------------*/ |
/* End of plf_misc.c */ |
/v2_0/ChangeLog
0,0 → 1,229
2003-03-06 Bart Veer <bartv@ecoscentric.com> |
|
* include/plf_io.h: add dummy header file needed by the |
mn10300 architectural hal. |
|
2000-10-20 Jonathan Larmour <jlarmour@redhat.com> |
|
* include/pkgconf/mlt_mn10300_am31_sim_ram.mlt: |
Add heap1 section |
|
* include/pkgconf/mlt_mn10300_am31_sim_ram.h: |
* include/pkgconf/mlt_mn10300_am31_sim_ram.ldi: |
Regenerated |
|
2000-02-16 Jesper Skov <jskov@redhat.com> |
|
* cdl/hal_mn10300_am31_sim.cdl: removed fix me |
|
2000-01-24 John Dallaway <jld@cygnus.co.uk> |
|
* cdl/*.cdl: |
|
Remove obsolete option CYGTST_TESTING_IDENTIFIER. |
|
2000-01-19 Hugo Tyson <hmt@cygnus.co.uk> |
|
* cdl/*.cdl: Add descriptions to a number of options &c which were |
lacking same, also tidied up other typos as noticed en passant. |
|
1999-12-21 Jonathan Larmour <jlarmour@cygnus.co.uk> |
|
* cdl/hal_mn10300_am31_sim.cdl: Ensure we "puts" to appropriate CDL |
header |
|
1999-12-20 Gary Thomas <gthomas@cygnus.co.uk> |
|
* cdl/hal_mn10300_am31_sim.cdl: Add -Wl for linker options. |
|
1999-11-25 Gary Thomas <gthomas@cygnus.co.uk> |
|
* include/pkgconf/mlt_mn10300_am31_sim_ram.h: New file. |
|
1999-11-03 Jesper Skov <jskov@cygnus.co.uk> |
|
* cdl/hal_mn10300_am31_sim.cdl: Added. |
|
1999-09-09 Jonathan Larmour <jlarmour@cygnus.co.uk> |
|
* src/plf_misc.c: New file. |
|
* src/PKGconf.mak (PACKAGE): Rename hal_mn10300_sim to |
hal_mn10300_am31_sim |
(COMPILE): Add plf_misc.c |
|
* tests/PKGconf.mak (PACKAGE): Likewise |
|
* include/platform.inc: New file, effectively empty |
* include/plf_intr.h: Likewise |
* include/pkgconf/mlt_mn10300_sim_ram.ldi: Rename to |
mlt_mn10300_am31_sim_ram.ldi |
* include/pkgconf/mlt_mn10300_am31_sim_ram.ldi: New file |
* include/pkgconf/mlt_mn10300_sim_ram.mlt: Rename to |
mlt_mn10300_am31_sim_ram.mlt |
* include/pkgconf/mlt_mn10300_am31_sim_ram.mlt: New file |
* src/makefile: delete |
|
1999-09-06 Jonathan Larmour <jlarmour@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: Rename to hal_mn10300_am31_sim.h |
* include/pkgconf/hal_mn10300_am31_sim.h: New file |
Require AM31 target |
|
1999-05-20 Gary Thomas <gthomas@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: Move RTC setup here. |
|
1999-04-08 John Dallaway <jld@cygnus.co.uk> |
|
* include/pkgconf/*.ldi: Revised SECTION_* macro arguments to |
avoid padded output sections (PR 19787) |
|
1999-03-04 Gary Thomas <gthomas@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: Take out DEVICES dependencies. |
|
1999-03-04 John Dallaway <jld@cygnus.co.uk> |
|
* include/pkgconf/*.ldi: give all LDI files unique names so |
that they can co-exist in an eCos build tree (PR 19184) |
* include/pkgconf/*.mlt: give all MLT files unique names so |
that they can co-exist in an eCos build tree (PR 19184) |
|
1999-02-16 Jesper Skov <jskov@cygnus.co.uk> |
|
* include/hal_stub.h: Removed. |
|
1999-02-05 John Dallaway <jld@cygnus.co.uk> |
|
* include/pkgconf/*.mlt: New memory layout save files |
|
1999-02-05 John Dallaway <jld@cygnus.co.uk> |
|
* include/pkgconf/*.ldi: Remove LMA_EQ_VMA macro definition. |
|
1999-01-26 Hugo Tyson <hmt@masala.cygnus.co.uk> |
|
* include/pkgconf/ram.ldi: |
Add copyright notice. (Though these files will later be generated |
by a tool and so not copyright, these default setups are.) |
|
* src/PKGconf.mak (COMPILE): |
Remove obsolete and in fact empty file sim.S |
|
* src/sim.S: |
Removed. |
|
1999-01-14 John Dallaway <jld@cygnus.co.uk> |
|
* include/pkgconf/ram.ldi: correct the start address |
|
1999-01-12 John Dallaway <jld@cygnus.co.uk> |
|
* src/sim.ld: remove for MLT |
* src/PKGconf.mak: remove sim.ld rules for MLT |
* include/pkgconf/ram.ldi: new linker script fragment for MLT |
|
1998-11-06 Jesper Skov <jskov@lassi.cygnus.co.uk> |
|
* include/hal_stub.h: Added for GDB stub support. |
|
1998-10-23 Jesper Skov <jskov@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: Allow wallclock and watchdog |
devices to be configured. |
|
1998-10-19 Jesper Skov <jskov@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: Undid 1998-10-16 change. |
|
1998-10-16 Jesper Skov <jskov@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: Changed |
CYGPKG_HAL_MN10300_SIM to CYG_HAL_MN10300_SIM. |
|
1998-09-22 Bart Veer <bartv@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: |
Preclude the gdb pseudo device as well as all the other devices. |
This allows the configuration tool to do a better job when |
switching from hardware to simulator. |
|
1998-09-11 Bart Veer <bartv@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: |
Updated configuration information with a description and |
some requires. |
|
Thu Sep 3 15:15:57 1998 Tim Goodwin <tgoodwin@cygnus.co.uk> |
|
* hal/mn10300/sim/current/src/PKGconf.mak |
* hal/mn10300/sim/current/src/makefile |
* hal/mn10300/sim/current/tests/PKGconf.mak |
|
s/panx/mn10300/g |
|
1998-09-02 Bart Veer <bartv@cygnus.co.uk> |
|
* include/pkgconf/hal_mn10300_sim.h: |
New header file for platform-specific configuration options |
|
* tests/PKGconf.mak: |
* src/PKGconf.mak: |
Sort out package naming conventions. |
|
Wed Aug 19 18:45:44 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> |
|
* src/hal_diag.c (hal_diag_init): |
Put void into function prototype argument list to silence warning |
|
1998-08-18 Nick Garnett <nickg@cygnus.co.uk> |
|
* include/hal_diag.h: |
* src/hal_diag.c: |
* src/sim.ld: |
Now uses hal.h rather than kernel.h. |
|
Tue Aug 18 11:45:25 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> |
|
* src/sim.ld: Reorder GROUP line |
|
Mon Aug 17 22:21:34 1998 Jonathan Larmour <jlarmour@cygnus.co.uk> |
|
* src/sim.ld: |
Add GROUP(libgcc.a libtarget.a) to prevent need for explicit linking |
|
//=========================================================================== |
//####ECOSGPLCOPYRIGHTBEGIN#### |
// ------------------------------------------- |
// This file is part of eCos, the Embedded Configurable Operating System. |
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
// |
// eCos 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 or (at your option) any later version. |
// |
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
// WARRANTY; without even the implied warranty of MERCHANTABILITY or |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
// for more details. |
// |
// You should have received a copy of the GNU General Public License along |
// with eCos; if not, write to the Free Software Foundation, Inc., |
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
// |
// As a special exception, if other files instantiate templates or use macros |
// or inline functions from this file, or you compile this file and link it |
// with other works to produce a work based on this file, this file does not |
// by itself cause the resulting work to be covered by the GNU General Public |
// License. However the source code for this file must still be made available |
// in accordance with section (3) of the GNU General Public License. |
// |
// This exception does not invalidate any other reasons why a work based on |
// this file might be covered by the GNU General Public License. |
// |
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
// at http://sources.redhat.com/ecos/ecos-license/ |
// ------------------------------------------- |
//####ECOSGPLCOPYRIGHTEND#### |
//=========================================================================== |