mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Looks like an error all all kernel build linker scripts
This commit is contained in:
@@ -96,5 +96,5 @@ MEMORY
|
|||||||
|
|
||||||
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
||||||
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
||||||
xsram (rwx) : ORIGIN = 0x20001000, LENGTH = 104K
|
xsram (rwx) : ORIGIN = 0x20002000, LENGTH = 104K
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ MEMORY
|
|||||||
|
|
||||||
ksram1 (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
ksram1 (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
||||||
usram1 (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
usram1 (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
||||||
xsram1 (rwx) : ORIGIN = 0x20001000, LENGTH = 24K
|
xsram1 (rwx) : ORIGIN = 0x20002000, LENGTH = 24K
|
||||||
|
|
||||||
/* 16Kb SRAM */
|
/* 16Kb SRAM */
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ CONFIG_PASS1_TARGET="all"
|
|||||||
CONFIG_PASS1_BUILDIR="configs/stm3240g-eval/kernel"
|
CONFIG_PASS1_BUILDIR="configs/stm3240g-eval/kernel"
|
||||||
CONFIG_PASS1_OBJECT=""
|
CONFIG_PASS1_OBJECT=""
|
||||||
CONFIG_NUTTX_KERNEL=y
|
CONFIG_NUTTX_KERNEL=y
|
||||||
CONFIG_NUTTX_USERSPACE=0x08020000
|
CONFIG_NUTTX_USERSPACE=0x08040000
|
||||||
|
|
||||||
#
|
#
|
||||||
# Binary Output Formats
|
# Binary Output Formats
|
||||||
@@ -685,7 +685,9 @@ CONFIG_NXSTART_DEVNO=0
|
|||||||
#
|
#
|
||||||
# Memory Management
|
# Memory Management
|
||||||
#
|
#
|
||||||
# CONFIG_MM_MULTIHEAP is not set
|
CONFIG_MM_MULTIHEAP=y
|
||||||
|
CONFIG_MM_KERNEL_HEAP=y
|
||||||
|
CONFIG_MM_KERNEL_HEAPSIZE=8192
|
||||||
# CONFIG_MM_SMALL is not set
|
# CONFIG_MM_SMALL is not set
|
||||||
CONFIG_MM_REGIONS=2
|
CONFIG_MM_REGIONS=2
|
||||||
# CONFIG_GRAN is not set
|
# CONFIG_GRAN is not set
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
* where the code expects to begin execution by jumping to the entry point in
|
* where the code expects to begin execution by jumping to the entry point in
|
||||||
* the 0x0800:0000 address range.
|
* the 0x0800:0000 address range.
|
||||||
*
|
*
|
||||||
* For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of
|
* For MPU support, the kernel-mode NuttX section is assumed to be 256Kb of
|
||||||
* FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which
|
* FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which
|
||||||
* should fit into 64KB and, of course, can be optimized as needed (See
|
* should fit into 64KB and, of course, can be optimized as needed (See
|
||||||
* also configs/stm3240g-eval/scripts/kernel-space.ld). Allowing the
|
* also configs/stm3240g-eval/scripts/kernel-space.ld). Allowing the
|
||||||
@@ -88,13 +88,13 @@ MEMORY
|
|||||||
{
|
{
|
||||||
/* 1024Kb FLASH */
|
/* 1024Kb FLASH */
|
||||||
|
|
||||||
kflash (rx) : ORIGIN = 0x08000000, LENGTH = 128K
|
kflash (rx) : ORIGIN = 0x08000000, LENGTH = 256K
|
||||||
uflash (rx) : ORIGIN = 0x08020000, LENGTH = 128K
|
uflash (rx) : ORIGIN = 0x08040000, LENGTH = 256K
|
||||||
xflash (rx) : ORIGIN = 0x08040000, LENGTH = 768K
|
xflash (rx) : ORIGIN = 0x08080000, LENGTH = 512K
|
||||||
|
|
||||||
/* 112Kb of contiguous SRAM */
|
/* 112Kb of contiguous SRAM */
|
||||||
|
|
||||||
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
||||||
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
||||||
xsram (rwx) : ORIGIN = 0x20001000, LENGTH = 104K
|
xsram (rwx) : ORIGIN = 0x20002000, LENGTH = 104K
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,5 +97,5 @@ MEMORY
|
|||||||
|
|
||||||
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
||||||
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
||||||
xsram (rwx) : ORIGIN = 0x20001000, LENGTH = 104K
|
xsram (rwx) : ORIGIN = 0x20002000, LENGTH = 104K
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,5 +96,5 @@ MEMORY
|
|||||||
|
|
||||||
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
ksram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K
|
||||||
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
usram (rwx) : ORIGIN = 0x20001000, LENGTH = 4K
|
||||||
xsram (rwx) : ORIGIN = 0x20001000, LENGTH = 104K
|
xsram (rwx) : ORIGIN = 0x20002000, LENGTH = 104K
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -36,8 +36,8 @@ conditions where mmap() can be supported:
|
|||||||
2. If CONFIG_FS_RAMMAP is defined in the configuration, then mmap() will
|
2. If CONFIG_FS_RAMMAP is defined in the configuration, then mmap() will
|
||||||
support simulation of memory mapped files by copying files whole
|
support simulation of memory mapped files by copying files whole
|
||||||
into RAM. These copied files have some of the properties of
|
into RAM. These copied files have some of the properties of
|
||||||
standard memory mapped files. There are many, many exceptions
|
standard memory mapped files. There are many, many exceptions,
|
||||||
exceptions, however. Some of these include:
|
however. Some of these include:
|
||||||
|
|
||||||
a. The goal is to have a single region of memory that represents a single
|
a. The goal is to have a single region of memory that represents a single
|
||||||
file and can be shared by many threads. That is, given a filename a
|
file and can be shared by many threads. That is, given a filename a
|
||||||
|
|||||||
Reference in New Issue
Block a user