summaryrefslogtreecommitdiff
path: root/nuttx/configs/skp16c26/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-08 22:55:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-08 22:55:04 +0000
commit6957b39cd8d76efefad682933430074023842c96 (patch)
treecf900eec46b9c7119bf0e0028acd2107789bfd4f /nuttx/configs/skp16c26/ostest
parentdd3dedf14c0a7949f15aa207906764586419e531 (diff)
downloadpx4-nuttx-6957b39cd8d76efefad682933430074023842c96.tar.gz
px4-nuttx-6957b39cd8d76efefad682933430074023842c96.tar.bz2
px4-nuttx-6957b39cd8d76efefad682933430074023842c96.zip
Addng M16C logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1485 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/skp16c26/ostest')
-rw-r--r--nuttx/configs/skp16c26/ostest/defconfig4
-rw-r--r--nuttx/configs/skp16c26/ostest/ld.script41
2 files changed, 32 insertions, 13 deletions
diff --git a/nuttx/configs/skp16c26/ostest/defconfig b/nuttx/configs/skp16c26/ostest/defconfig
index 0b9e1e64f..1f515adba 100644
--- a/nuttx/configs/skp16c26/ostest/defconfig
+++ b/nuttx/configs/skp16c26/ostest/defconfig
@@ -41,7 +41,7 @@
# particular chip or SoC that the architecture is implemented
# in.
# CONFIG_ARCH_CHIP - Identifies the arch/*/chip subdirectory
-# CONFIG_ARCH_CHIP_name - For use in C code
+# CONFIG_ARCH_CHIP_name - Identifies the specific chip variant For use in C code
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
# the board that supports the particular chip or SoC.
# CONFIG_ARCH_BOARD_name - for use in C code
@@ -59,7 +59,7 @@
CONFIG_ARCH=sh
CONFIG_ARCH_SH=y
CONFIG_ARCH_CHIP=m16c
-CONFIG_ARCH_CHIP_M16C=y
+CONFIG_ARCH_CHIP_M30262F8=y
CONFIG_ARCH_BOARD=skp16c26
CONFIG_ARCH_BOARD_SKP16C26=y
CONFIG_ENDIAN_BIG=y
diff --git a/nuttx/configs/skp16c26/ostest/ld.script b/nuttx/configs/skp16c26/ostest/ld.script
index 647492917..b9c0e4834 100644
--- a/nuttx/configs/skp16c26/ostest/ld.script
+++ b/nuttx/configs/skp16c26/ostest/ld.script
@@ -37,7 +37,7 @@ OUTPUT_ARCH(m32c)
ENTRY(_stext)
SECTIONS
{
- /* Flash memory begins at address 0xf0000 for the M20262F8 part and
+ /* "Far" flash memory begins at address 0xf0000 for the M20262F8 part and
* ends at address 0xfffff (all parts). The program entry point is
* the first address in flash
*/
@@ -55,9 +55,9 @@ SECTIONS
_etext = ABSOLUTE(.);
}
- _eronly = ABSOLUTE(.); /* End of read-only values */
- /* .data will be relocated from */
- /* this address */
+ _enronly = ABSOLUTE(.); /* End of read-only values */
+ /* .ndata will be relocated */
+ /* from this address */
/* The "variable" vector table will be fixed at the following address */
@@ -84,7 +84,7 @@ SECTIONS
_efixvect = ABSOLUTE(.);
}
- /* Internal RAM begins at address 0x00400 (all parts) and ends at
+ /* Internal "near" RAM begins at address 0x00400 (all parts) and ends at
* address 0x00bff (M20262F6 and M20262F8 parts). With the RAM
* region, used is .data followed by .bss. The remainder of RAM
* carved up by the start-up code into stacks and heaps.
@@ -92,19 +92,38 @@ SECTIONS
. = 0x00400;
- .data : {
- _sdata = ABSOLUTE(.);
+ .ndata : {
+ _sndata = ABSOLUTE(.);
*(.data)
CONSTRUCTORS
- _edata = ABSOLUTE(.);
+ _endata = ABSOLUTE(.);
}
- .bss : { /* BSS */
- _sbss = ABSOLUTE(.);
+ .nbss : { /* BSS */
+ _snbss = ABSOLUTE(.);
*(.bss)
*(COMMON)
- _ebss = ABSOLUTE(.);
+ _enbss = ABSOLUTE(.);
}
+
+ /* "Far" RAM begins at 0x10000. The SKP16C26 has no far RAM */
+/*
+ . = 0x10000;
+
+ .fdata : {
+ _sfdata = ABSOLUTE(.);
+ *(.data)
+ CONSTRUCTORS
+ _efdata = ABSOLUTE(.);
+ }
+
+ .fbss : { /* BSS */
+ _sfbss = ABSOLUTE(.);
+ *(.bss)
+ *(COMMON)
+ _efbss = ABSOLUTE(.);
+ }
+*/
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }