9
0
Fork 0

MIPS: pbl: use generated label in ADR macro

The generated label usage make possible
to use the ADR macro many times.

If we don't use a generated label and we try
to use the ADR macro second time then we get

   Error: symbol `_pc' is already defined

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2013-06-17 20:35:19 +04:00 committed by Sascha Hauer
parent e1b12c4758
commit d3f6aca16a
1 changed files with 2 additions and 2 deletions

View File

@ -41,9 +41,9 @@
.set push
.set noreorder
move \temp, ra # preserve ra beforehand
bal _pc
bal 255f
nop
_pc: addiu \rd, ra, \label - _pc # label is assumed to be
255: addiu \rd, ra, \label - 255b # label is assumed to be
move ra, \temp # within pc +/- 32KB
.set pop
.endm