Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67322
b: refs/heads/master
c: 748a768
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala committed Sep 14, 2007
1 parent 2ec990f commit 76f37c4
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e14d21e3f28a4181dacff0336040e30942f4921
refs/heads/master: 748a768384e05c021ea6be221b80c62a83d7b520
17 changes: 7 additions & 10 deletions trunk/arch/powerpc/kernel/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,17 @@
mtspr SPRN_DBAT##n##L,RB; \
1:

.text
.section .text.head, "ax"
.stabs "arch/powerpc/kernel/",N_SO,0,0,0f
.stabs "head_32.S",N_SO,0,0,0f
0:
.globl _stext
_stext:
_ENTRY(_stext);

/*
* _start is defined this way because the XCOFF loader in the OpenFirmware
* on the powermac expects the entry point to be a procedure descriptor.
*/
.text
.globl _start
_start:
_ENTRY(_start);
/*
* These are here for legacy reasons, the kernel used to
* need to look like a coff function entry for the pmac
Expand Down Expand Up @@ -841,7 +838,7 @@ relocate_kernel:
* r3 = dest addr, r4 = source addr, r5 = copy limit, r6 = start offset
* on exit, r3, r4, r5 are unchanged, r6 is updated to be >= r5.
*/
_GLOBAL(copy_and_flush)
_ENTRY(copy_and_flush)
addi r5,r5,-4
addi r6,r6,-4
4: li r0,L1_CACHE_BYTES/4
Expand Down Expand Up @@ -954,9 +951,9 @@ __secondary_start:
* included in CONFIG_6xx
*/
#if !defined(CONFIG_6xx)
_GLOBAL(__save_cpu_setup)
_ENTRY(__save_cpu_setup)
blr
_GLOBAL(__restore_cpu_setup)
_ENTRY(__restore_cpu_setup)
blr
#endif /* !defined(CONFIG_6xx) */

Expand Down Expand Up @@ -1080,7 +1077,7 @@ start_here:
/*
* Set up the segment registers for a new context.
*/
_GLOBAL(set_context)
_ENTRY(set_context)
mulli r3,r3,897 /* multiply context by skew factor */
rlwinm r3,r3,4,8,27 /* VSID = (context & 0xfffff) << 4 */
addis r3,r3,0x6000 /* Set Ks, Ku bits */
Expand Down
12 changes: 6 additions & 6 deletions trunk/arch/powerpc/kernel/head_40x.S
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
*
* This is all going to change RSN when we add bi_recs....... -- Dan
*/
.text
_GLOBAL(_stext)
_GLOBAL(_start)
.section .text.head, "ax"
_ENTRY(_stext);
_ENTRY(_start);

/* Save parameters we are passed.
*/
Expand Down Expand Up @@ -89,9 +89,9 @@ turn_on_mmu:
*/
. = 0xc0
crit_save:
_GLOBAL(crit_r10)
_ENTRY(crit_r10)
.space 4
_GLOBAL(crit_r11)
_ENTRY(crit_r11)
.space 4

/*
Expand Down Expand Up @@ -814,7 +814,7 @@ finish_tlb_load:
* The PowerPC 4xx family of processors do not have an FPU, so this just
* returns.
*/
_GLOBAL(giveup_fpu)
_ENTRY(giveup_fpu)
blr

/* This is where the main kernel code starts.
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/kernel/head_44x.S
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
* r7 - End of kernel command line string
*
*/
.text
_GLOBAL(_stext)
_GLOBAL(_start)
.section .text.head, "ax"
_ENTRY(_stext);
_ENTRY(_start);
/*
* Reserve a word at a fixed location to store the address
* of abatron_pteptrs
Expand Down
9 changes: 3 additions & 6 deletions trunk/arch/powerpc/kernel/head_8xx.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@
#else
#define DO_8xx_CPU6(val, reg)
#endif
.text
.globl _stext
_stext:
.text
.globl _start
_start:
.section .text.head, "ax"
_ENTRY(_stext);
_ENTRY(_start);

/* MPC8xx
* This port was done on an MBX board with an 860. Right now I only
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/kernel/head_fsl_booke.S
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
* r7 - End of kernel command line string
*
*/
.text
_GLOBAL(_stext)
_GLOBAL(_start)
.section .text.head, "ax"
_ENTRY(_stext);
_ENTRY(_start);
/*
* Reserve a word at a fixed location to store the address
* of abatron_pteptrs
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/powerpc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ SECTIONS

/* Text and gots */
.text : {
ALIGN_FUNCTION();
*(.text.head)
_text = .;
TEXT_TEXT
SCHED_TEXT
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-powerpc/ppc_asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ GLUE(.,name):

#else /* 32-bit */

#define _ENTRY(n) \
.globl n; \
n:

#define _GLOBAL(n) \
.text; \
.stabs __stringify(n:F-1),N_FUN,0,0,n;\
Expand Down

0 comments on commit 76f37c4

Please sign in to comment.