summaryrefslogtreecommitdiffstats
path: root/libgloss/msp430
Commit message (Collapse)AuthorAgeFilesLines
* Build msp430-specific libnosysDJ Delorie2015-12-171-6/+6
| | | | | | | | | | The MSP430 debuggers support I/O on hardware through CIO, so we can use a CIO-enabled library as the "nosys" library (in addition to the libsim library, which talks to our simulator) * configure.in: Don't build default libnosys for msp430 * configure: Regenerate. * msp430/Makefile: Rename libcio to libnosys.
* Update CIO hooks to be more flexible.DJ Delorie2015-12-171-9/+16
| | | | | | | Replace the one hook we had with two to avoid underscore issues. * msp430/cio.c: Remove, replace with... * msp430/cio.S: New, this.
* Always define __high_bsssize, do not just PROVIDE it.Nick Clifton2015-12-041-1/+1
| | | | * msp430/msp430xl-sim.ld (__high_bsssize): Define.
* Fix initialisation of .upper.bss for the MSP430.Nick Clifton2015-11-231-0/+1
| | | | * msp430/msp430xl-sim.ld (__high_bsssize): Define.
* Add support for persistent data to the MSP430 linker scripts.Nick Clifton2015-10-063-8/+46
| | | | | | | * msp430/msp430-sim.ld: Add .persistent section. Tidy up section layout. Start RAM above hardware multiply registers. * msp430/msp430xl-sim.ld: Likewise.
* * msp430/crt0.S: Remove watchdog disabling code.Nick Clifton2015-08-201-2/+0
|
* Add a check that the data area does not overrun the stack.Nick Clifton2015-05-272-1/+33
| | | | | | | | | | | * msp430/msp430-sim.ld (.stack): Add an assertion to make sure that the data area does not overrun the stack. PROVIDE a new symbol __stack_size to allow the user to set the limit. * msp430/msp430xl-sim.ld (.stack): Likewise. * rl78/rl78-sim.ld (.stack): Likewise. * rl78/rl78.ld (.stack): Likewise. * rx/rx-sim.ld (.stack): Likewise. * rx/rx.ld (.stack): Likewise.
* Adds support for placing MSP430 code and data into either low memory or high ↵Nick Clifton2015-05-279-786/+429
| | | | | | | | | | | | | | | | | | | | | | | | | | | | memory. * msp430/msp430.ld: Delete. * msp430/msp430F5438A-l.ld: Delete. * msp430/msp430F5438A-s.ld: Delete. * msp430/crt_movedata.S: Delete. * msp430/Makefile.in (SCRIPTS): Remove msp430.ld. (CRT_OBJS): Add crt_move_highdata.o. * msp430/memmodel.h (START_CRT_FUNC): New macro. (END_CRT_FUNC): New macro. (WEAK_DEF): New macro. * msp430/crt0.S: Use new macros. (move_highdata): New code to initialise the .data section if it is held in high memory. * msp430/msp430-sim.ld (.data): Add .either.data. (.rodata2): Move some read-only data sections here. (.text): Add .either.text. (.rodata): Add .either.rodata. (.bss): Add .either.bss. * msp430/msp430xl-sim.ld (MEMORY): Add HIROM. (.rodata2): Move some read-only data sections here. (.upper.data): New section. Include notes about how to initialise it.
* * msp430/Makefile.in (CRT_OBJS): Add crt_high_bss.o.Nick Clifton2014-11-134-50/+119
| | | | | | | | * msp430/crt0.S (high_bss): Add. * msp430/msp430-sim.ld: Add error message if .upper sections are detected. * msp430/msp430xl-sim.ld (MEMORY): Adjust to better mimic real life MCUs. Add support for upper and lower sections.
* 2014-10-22 Tim Harder <radhermit@gmail.com>DJ Delorie2014-10-231-2/+4
| | | | * msp430/Makefile.in: respect DESTDIR during install
* * configure.in: Remove config_libnosys=falseNick Clifton2014-09-222-6/+6
| | | | | | * configure: Regenerated. * msp430/nosyscalls.S: Rename to ciosyscalls.S * msp430/Makefile.in: Change LIBNOSYS to LIB_CIO.
* * msp430/Makefile.in (NOSYS_OBJS): Add unlink.o.Nick Clifton2014-04-302-8/+31
| | | | | (SCRIPTS): Remove msp430F5438A-s.ld and msp430F5438A-s.ld. * unlink.c: New file.
* * msp430/Makefile.in (crt0-minrt.o, crtn-minrt.o): New. BuildDJ Delorie2014-01-306-24/+83
| | | | | | | | | | | | from crt0.S with -DMINRT. (CRT_OBJS): Expand. (crt_%.o): New rule pattern. Build multiple objects from crt0.S. * msp430/crt0.S: Further break out functionality. Support -DMINRT that omits all init/fini logic. * msp430/crtn.S: Likewise. * msp430/msp430-sim.ld: Wildcard all .crt_* sections, sorted. * msp430/msp430.ld: Likewise. * msp430/msp430xl-sim.ld: Likewise.
* * msp430/Makefile.in (SCRIPTS): Add intr_vectors.ld.Nick Clifton2013-09-189-40/+299
| | | | | | | | | | | | | | | | | | (LIB_CRT): New. (CRT_OBJS): New. (all): Add dependency upon LIB_CRT. (install): Likewise. * msp430/msp430-sim.ld: Include intr_vectors.ld. KEEP crt code, lowtext code and tm_clone_table. Separate the noinit section from the .bss section. Allow for extended .debug_line sections. * msp430/msp430.ld: Likewise. * msp430/msp430F5438A-l.ld: Likewise. * msp430/msp430F5438A-s.ld: Likewise. * msp430/msp430xl-sim.ld: Likewise . * msp430/crt_movedata.S: New. * msp430/crt_bss.S: New. * msp430/intr_vectors.ld: New.
* [newlib]DJ Delorie2013-05-1318-0/+5501
* configure.host (msp430): Add. * libc/include/machine/ieeefp.h: Add MSP430 support. * libc/include/machine/setjmp.h: Likewise. * libc/include/sys/config.h: Likewise. * libc/machine/configure.in (msp430): Add. * libc/machine/configure: Regenerate. * libc/machine/msp430: New directory. [libgloss] * configure.in (msp430*-*-elf): Add. * configure: Regenerate. * msp430: New directory.