Blackfin arch: use local labels and ENDPROC() markings
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
7dee62ac5a
commit
1a8caeebe3
1 changed files with 13 additions and 6 deletions
|
@ -51,6 +51,7 @@ ENTRY(_sleep_mode)
|
||||||
RETS = [SP++];
|
RETS = [SP++];
|
||||||
( R7:0, P5:0 ) = [SP++];
|
( R7:0, P5:0 ) = [SP++];
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_sleep_mode)
|
||||||
|
|
||||||
ENTRY(_hibernate_mode)
|
ENTRY(_hibernate_mode)
|
||||||
[--SP] = ( R7:0, P5:0 );
|
[--SP] = ( R7:0, P5:0 );
|
||||||
|
@ -75,6 +76,7 @@ ENTRY(_hibernate_mode)
|
||||||
IDLE;
|
IDLE;
|
||||||
.Lforever:
|
.Lforever:
|
||||||
jump .Lforever;
|
jump .Lforever;
|
||||||
|
ENDPROC(_hibernate_mode)
|
||||||
|
|
||||||
ENTRY(_deep_sleep)
|
ENTRY(_deep_sleep)
|
||||||
[--SP] = ( R7:0, P5:0 );
|
[--SP] = ( R7:0, P5:0 );
|
||||||
|
@ -130,6 +132,7 @@ ENTRY(_deep_sleep)
|
||||||
RETS = [SP++];
|
RETS = [SP++];
|
||||||
( R7:0, P5:0 ) = [SP++];
|
( R7:0, P5:0 ) = [SP++];
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_deep_sleep)
|
||||||
|
|
||||||
ENTRY(_sleep_deeper)
|
ENTRY(_sleep_deeper)
|
||||||
[--SP] = ( R7:0, P5:0 );
|
[--SP] = ( R7:0, P5:0 );
|
||||||
|
@ -231,7 +234,7 @@ ENTRY(_sleep_deeper)
|
||||||
RETS = [SP++];
|
RETS = [SP++];
|
||||||
( R7:0, P5:0 ) = [SP++];
|
( R7:0, P5:0 ) = [SP++];
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_sleep_deeper)
|
||||||
|
|
||||||
ENTRY(_set_dram_srfs)
|
ENTRY(_set_dram_srfs)
|
||||||
/* set the dram to self refresh mode */
|
/* set the dram to self refresh mode */
|
||||||
|
@ -270,7 +273,7 @@ ENTRY(_set_dram_srfs)
|
||||||
[P0] = R2;
|
[P0] = R2;
|
||||||
#endif
|
#endif
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_set_dram_srfs)
|
||||||
|
|
||||||
ENTRY(_unset_dram_srfs)
|
ENTRY(_unset_dram_srfs)
|
||||||
/* set the dram out of self refresh mode */
|
/* set the dram out of self refresh mode */
|
||||||
|
@ -297,6 +300,7 @@ ENTRY(_unset_dram_srfs)
|
||||||
#endif
|
#endif
|
||||||
SSYNC;
|
SSYNC;
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_unset_dram_srfs)
|
||||||
|
|
||||||
ENTRY(_set_sic_iwr)
|
ENTRY(_set_sic_iwr)
|
||||||
#if defined(CONFIG_BF54x) || defined(CONFIG_BF52x) || defined(CONFIG_BF561)
|
#if defined(CONFIG_BF54x) || defined(CONFIG_BF52x) || defined(CONFIG_BF561)
|
||||||
|
@ -318,6 +322,7 @@ ENTRY(_set_sic_iwr)
|
||||||
|
|
||||||
SSYNC;
|
SSYNC;
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_set_sic_iwr)
|
||||||
|
|
||||||
ENTRY(_set_rtc_istat)
|
ENTRY(_set_rtc_istat)
|
||||||
#ifndef CONFIG_BF561
|
#ifndef CONFIG_BF561
|
||||||
|
@ -332,6 +337,7 @@ ENTRY(_set_rtc_istat)
|
||||||
nop;
|
nop;
|
||||||
#endif
|
#endif
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_set_rtc_istat)
|
||||||
|
|
||||||
ENTRY(_test_pll_locked)
|
ENTRY(_test_pll_locked)
|
||||||
P0.H = hi(PLL_STAT);
|
P0.H = hi(PLL_STAT);
|
||||||
|
@ -341,10 +347,10 @@ ENTRY(_test_pll_locked)
|
||||||
CC = BITTST(R0,5);
|
CC = BITTST(R0,5);
|
||||||
IF !CC JUMP 1b;
|
IF !CC JUMP 1b;
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_test_pll_locked)
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
|
|
||||||
|
|
||||||
ENTRY(_do_hibernate)
|
ENTRY(_do_hibernate)
|
||||||
[--SP] = ( R7:0, P5:0 );
|
[--SP] = ( R7:0, P5:0 );
|
||||||
[--SP] = RETS;
|
[--SP] = RETS;
|
||||||
|
@ -593,8 +599,8 @@ ENTRY(_do_hibernate)
|
||||||
R0.H = 0xDEAD; /* Hibernate Magic */
|
R0.H = 0xDEAD; /* Hibernate Magic */
|
||||||
R0.L = 0xBEEF;
|
R0.L = 0xBEEF;
|
||||||
[P0++] = R0; /* Store Hibernate Magic */
|
[P0++] = R0; /* Store Hibernate Magic */
|
||||||
R0.H = pm_resume_here;
|
R0.H = .Lpm_resume_here;
|
||||||
R0.L = pm_resume_here;
|
R0.L = .Lpm_resume_here;
|
||||||
[P0++] = R0; /* Save Return Address */
|
[P0++] = R0; /* Save Return Address */
|
||||||
[P0++] = SP; /* Save Stack Pointer */
|
[P0++] = SP; /* Save Stack Pointer */
|
||||||
P0.H = _hibernate_mode;
|
P0.H = _hibernate_mode;
|
||||||
|
@ -602,7 +608,7 @@ ENTRY(_do_hibernate)
|
||||||
R0 = R2;
|
R0 = R2;
|
||||||
call (P0); /* Goodbye */
|
call (P0); /* Goodbye */
|
||||||
|
|
||||||
pm_resume_here:
|
.Lpm_resume_here:
|
||||||
|
|
||||||
/* Restore Core Registers */
|
/* Restore Core Registers */
|
||||||
SEQSTAT = [sp++];
|
SEQSTAT = [sp++];
|
||||||
|
@ -846,3 +852,4 @@ pm_resume_here:
|
||||||
RETS = [SP++];
|
RETS = [SP++];
|
||||||
( R7:0, P5:0 ) = [SP++];
|
( R7:0, P5:0 ) = [SP++];
|
||||||
RTS;
|
RTS;
|
||||||
|
ENDPROC(_do_hibernate)
|
||||||
|
|
Loading…
Reference in a new issue