summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx')
-rwxr-xr-xnuttx/arch/hc/src/common/up_internal.h6
-rwxr-xr-xnuttx/arch/hc/src/mc9s12ne64/mc9s12ne64_internal.h6
-rwxr-xr-xnuttx/configs/demo9s12ne64/README.txt9
3 files changed, 15 insertions, 6 deletions
diff --git a/nuttx/arch/hc/src/common/up_internal.h b/nuttx/arch/hc/src/common/up_internal.h
index fe7cac257..1e79e743c 100755
--- a/nuttx/arch/hc/src/common/up_internal.h
+++ b/nuttx/arch/hc/src/common/up_internal.h
@@ -41,8 +41,10 @@
****************************************************************************/
#include <nuttx/config.h>
-#include <stdint.h>
-
+#ifndef __ASSEMBLY__
+# include <stdint.h>
+#endif
+
/****************************************************************************
* Definitions
****************************************************************************/
diff --git a/nuttx/arch/hc/src/mc9s12ne64/mc9s12ne64_internal.h b/nuttx/arch/hc/src/mc9s12ne64/mc9s12ne64_internal.h
index fb8f2662a..550580bda 100755
--- a/nuttx/arch/hc/src/mc9s12ne64/mc9s12ne64_internal.h
+++ b/nuttx/arch/hc/src/mc9s12ne64/mc9s12ne64_internal.h
@@ -42,8 +42,10 @@
#include <nuttx/config.h>
-#include <stdint.h>
-#include <stdbool.h>
+#ifndef __ASSEMBLY__
+# include <stdint.h>
+# include <stdbool.h>
+#endif
#include "up_internal.h"
#include "chip.h"
diff --git a/nuttx/configs/demo9s12ne64/README.txt b/nuttx/configs/demo9s12ne64/README.txt
index 72b2c581d..cf35bc6d3 100755
--- a/nuttx/configs/demo9s12ne64/README.txt
+++ b/nuttx/configs/demo9s12ne64/README.txt
@@ -212,7 +212,7 @@ Soft Registers
There are several ways that this error could be fixed:
- 1. Increase the number of soft regiaters (i.e., "fake" registers defined
+ 1. Increase the number of soft registers (i.e., "fake" registers defined
at fixed memory locations). This can be done by adding something like
-msoft-reg-count=4 to the CFLAGS. This approach was not taken
because:
@@ -221,7 +221,8 @@ Soft Registers
- All of these soft registers wouil have to be saved and restored
on every interrupt and context switch.
- 2. Lowering the optimization level. Also not desireable becauase 99% of the
+ 2. Lowering the optimization level by dropping -Os to -O2 or, more likely,
+ by removing -fomit-frame-pointer. Also not desireable becauase 99% of the
files that do not have this problem also increase in size. Special case
compilation with reduced optimization levels just for the files that need
it could be done, but this would complicate the make system.
@@ -233,6 +234,10 @@ Soft Registers
the problem is not really eliminated -- it can and will re-occur when files
are changed or new files are added.
+ 4. Many files are built that are needed by DEM09S12NE64. Another very simple
+ option if those problem files are needed is to just remove the offending
+ files from the Make.defs file so that they no longer cause a problem.
+
HCS12/DEMO9S12NEC64-specific Configuration Options
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^