Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
e524d78f
Commit
e524d78f
authored
Sep 06, 2017
by
davidcunado-arm
Committed by
GitHub
Sep 06, 2017
Browse files
Merge pull request #1076 from masahir0y/asm_macro
asm_macros: set the default assembly code alignment to 4 byte
parents
942ee0d8
fed18b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/common/asm_macros_common.S
View file @
e524d78f
...
...
@@ -12,11 +12,12 @@
*
to
enable
elimination
of
unused
code
during
linking
.
It
also
adds
*
basic
debug
information
to
enable
call
stack
printing
most
of
the
*
time
.
The
optional
_align
parameter
can
be
used
to
force
a
*
non
-
standard
alignment
(
indicated
in
powers
of
2
)
.
Do
*
not
*
try
to
*
use
a
raw
.
align
directive
.
Since
func
switches
to
a
new
section
,
*
this
would
not
have
the
desired
effect
.
*
non
-
standard
alignment
(
indicated
in
powers
of
2
)
.
The
default
is
*
_align
=
2
because
both
Aarch32
and
Aarch64
instructions
must
be
*
word
aligned
.
Do
*
not
*
try
to
use
a
raw
.
align
directive
.
Since
func
*
switches
to
a
new
section
,
this
would
not
have
the
desired
effect
.
*/
.
macro
func
_name
,
_align
=
-
1
.
macro
func
_name
,
_align
=
2
/
*
*
Add
Call
Frame
Information
entry
in
the
.
debug_frame
section
for
*
debugger
consumption
.
This
enables
callstack
printing
in
debuggers
.
...
...
@@ -36,9 +37,7 @@
*
.
debug_frame
*/
.
cfi_startproc
.
if
(
\
_align
)
!=
-
1
.
align
\
_align
.
endif
.
align
\
_align
\
_name
:
.
endm
...
...
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