|
@@ -12,7 +12,6 @@
|
|
#include <asm/assembly.h>
|
|
#include <asm/assembly.h>
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
#include <linux/linkage.h>
|
|
-#include <linux/init.h>
|
|
|
|
|
|
|
|
.section .bss
|
|
.section .bss
|
|
.export real_stack
|
|
.export real_stack
|
|
@@ -40,7 +39,7 @@ save_cr_end:
|
|
/************************ 32-bit real-mode calls ***********************/
|
|
/************************ 32-bit real-mode calls ***********************/
|
|
/* This can be called in both narrow and wide kernels */
|
|
/* This can be called in both narrow and wide kernels */
|
|
|
|
|
|
- __HEAD
|
|
|
|
|
|
+ .text
|
|
|
|
|
|
/* unsigned long real32_call_asm(unsigned int *sp,
|
|
/* unsigned long real32_call_asm(unsigned int *sp,
|
|
* unsigned int *arg0p,
|
|
* unsigned int *arg0p,
|
|
@@ -114,7 +113,7 @@ ENDPROC(real32_call_asm)
|
|
# define PUSH_CR(r, where) mfctl r, %r1 ! STREG,ma %r1, REG_SZ(where)
|
|
# define PUSH_CR(r, where) mfctl r, %r1 ! STREG,ma %r1, REG_SZ(where)
|
|
# define POP_CR(r, where) LDREG,mb -REG_SZ(where), %r1 ! mtctl %r1, r
|
|
# define POP_CR(r, where) LDREG,mb -REG_SZ(where), %r1 ! mtctl %r1, r
|
|
|
|
|
|
- __HEAD
|
|
|
|
|
|
+ .text
|
|
save_control_regs:
|
|
save_control_regs:
|
|
load32 PA(save_cr_space), %r28
|
|
load32 PA(save_cr_space), %r28
|
|
PUSH_CR(%cr24, %r28)
|
|
PUSH_CR(%cr24, %r28)
|
|
@@ -146,7 +145,7 @@ restore_control_regs:
|
|
/* rfi_virt2real() and rfi_real2virt() could perhaps be adapted for
|
|
/* rfi_virt2real() and rfi_real2virt() could perhaps be adapted for
|
|
* more general-purpose use by the several places which need RFIs
|
|
* more general-purpose use by the several places which need RFIs
|
|
*/
|
|
*/
|
|
- __HEAD
|
|
|
|
|
|
+ .text
|
|
.align 128
|
|
.align 128
|
|
rfi_virt2real:
|
|
rfi_virt2real:
|
|
/* switch to real mode... */
|
|
/* switch to real mode... */
|
|
@@ -181,7 +180,7 @@ rfi_v2r_1:
|
|
bv 0(%r2)
|
|
bv 0(%r2)
|
|
nop
|
|
nop
|
|
|
|
|
|
- __HEAD
|
|
|
|
|
|
+ .text
|
|
.align 128
|
|
.align 128
|
|
rfi_real2virt:
|
|
rfi_real2virt:
|
|
rsm PSW_SM_I,%r0
|
|
rsm PSW_SM_I,%r0
|
|
@@ -219,7 +218,7 @@ rfi_r2v_1:
|
|
|
|
|
|
/************************ 64-bit real-mode calls ***********************/
|
|
/************************ 64-bit real-mode calls ***********************/
|
|
/* This is only usable in wide kernels right now and will probably stay so */
|
|
/* This is only usable in wide kernels right now and will probably stay so */
|
|
- __HEAD
|
|
|
|
|
|
+ .text
|
|
/* unsigned long real64_call_asm(unsigned long *sp,
|
|
/* unsigned long real64_call_asm(unsigned long *sp,
|
|
* unsigned long *arg0p,
|
|
* unsigned long *arg0p,
|
|
* unsigned long fn)
|
|
* unsigned long fn)
|
|
@@ -277,7 +276,7 @@ ENDPROC(real64_call_asm)
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- __HEAD
|
|
|
|
|
|
+ .text
|
|
/* http://lists.parisc-linux.org/hypermail/parisc-linux/10916.html
|
|
/* http://lists.parisc-linux.org/hypermail/parisc-linux/10916.html
|
|
** GCC 3.3 and later has a new function in libgcc.a for
|
|
** GCC 3.3 and later has a new function in libgcc.a for
|
|
** comparing function pointers.
|
|
** comparing function pointers.
|