Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wrpc-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
wr-cores
wrpc-sw
Commits
8eb4c296
Commit
8eb4c296
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
Kconfig and ram.ld: add stack size
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
c22b8a56
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Kconfig
+8
-0
8 additions, 0 deletions
Kconfig
arch/lm32/ram.ld.S
+8
-3
8 additions, 3 deletions
arch/lm32/ram.ld.S
with
16 additions
and
3 deletions
Kconfig
+
8
−
0
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
...
...
This diff is collapsed.
Click to expand it.
arch/lm32/ram.ld.S
+
8
−
3
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
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment