Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
8eb4c296
Commit
8eb4c296
authored
Nov 20, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kconfig and ram.ld: add stack size
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
c22b8a56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
Kconfig
Kconfig
+8
-0
ram.ld.S
arch/lm32/ram.ld.S
+8
-3
No files found.
Kconfig
View file @
8eb4c296
...
...
@@ -10,6 +10,14 @@ config RAMSIZE
more features you may want to adjust the FPGA size and
choose your preferred value here.
config STACKSIZE
int "Size of the stack area needed by this program"
default 2048
help
The linker complains if the code doesn't fit into RAM, but
we must also consider the stack, or the program will crash
badly at run time.
config MPRINTF
boolean "Use the old mprintf implementation for printf"
default y
...
...
arch/lm32/ram.ld.S
View file @
8eb4c296
...
...
@@ -31,7 +31,12 @@ ENTRY(_start)
MEMORY
{
ram : ORIGIN = 0x00000000, LENGTH = CONFIG_RAMSIZE
ram :
ORIGIN = 0x00000000,
LENGTH = CONFIG_RAMSIZE - CONFIG_STACKSIZE
stack :
ORIGIN = CONFIG_RAMSIZE - CONFIG_STACKSIZE,
LENGTH = CONFIG_STACKSIZE
}
SECTIONS
...
...
@@ -54,8 +59,8 @@ SECTIONS
_ebss = .;
} > ram
/* First location in stack is highest address in
RAM
*/
PROVIDE(_fstack = ORIGIN(
ram) + LENGTH(ram
) - 4);
/* First location in stack is highest address in
STACK
*/
PROVIDE(_fstack = ORIGIN(
stack) + LENGTH(stack
) - 4);
}
/* We need to provide mprintf to ptp-noposix object files, if missing */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment