mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Accept r1 as having the metadata pointer argument if r0 is 0.
This provides backward compatibility with Juniper loaders. Sponsored by: Juniper Networks
This commit is contained in:
parent
5a0bba9007
commit
2ebeb44fc4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218227
@ -65,14 +65,20 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
ENTRY_NP(btext)
|
||||
|
||||
/*
|
||||
* On entry:
|
||||
* r0 - metadata pointer or 0
|
||||
* r1 - if (r0 == 0) then metadata pointer
|
||||
*/
|
||||
ASENTRY_NP(_start)
|
||||
|
||||
/*
|
||||
* Move metadata ptr to r12 (ip)
|
||||
*/
|
||||
|
||||
/* Move metadata ptr to r12 (ip) */
|
||||
mov ip, r0
|
||||
|
||||
ldr r0, =0
|
||||
cmp ip, r0
|
||||
bne 1f
|
||||
mov ip, r1
|
||||
1:
|
||||
/* Make sure interrupts are disabled. */
|
||||
mrs r7, cpsr
|
||||
orr r7, r7, #(I32_bit|F32_bit)
|
||||
|
Loading…
Reference in New Issue
Block a user