[parisc-linux] About 2.6 64bit on b2k?
Joel Soete
soete.joel at tiscali.be
Sat Jan 31 17:40:51 MST 2004
Hi all,
About this :
>
> Sorry for auto-reply but my suspicious was right: I just revert this patch:
> ===================================================================
> RCS file: /var/lib/cvs/linux-2.5/arch/parisc/kernel/head64.S,v
> retrieving revision 1.1.2.1
> retrieving revision 1.1.2.2
> diff -u -r1.1.2.1 -r1.1.2.2
> --- linux-2.5/arch/parisc/kernel/head64.S 2002/12/24 22:15:01 1.1.2.1
> +++ linux-2.5/arch/parisc/kernel/head64.S 2003/01/14 13:08:03 1.1.2.2
> @@ -176,7 +176,9 @@
> #endif /* CONFIG_SMP */
>
> /* Save the rfi target address */
> - std %r11, TASK_PT_GR11-TASK_SZ_ALGN(%sp)
> + ldo -THREAD_SZ_ALGN(%sp), %r1
> + ldd TI_TASK(%r1), %r1
> + std %r11, TASK_PT_GR11(%r1)
>
> #ifndef CONFIG_PDC_NARROW
> /* Switch to wide mode; Superdome doesn't support narrow PDC
> @@ -206,7 +208,9 @@
>
> stext_pdc_ret:
> /* restore rfi target address*/
> - ldd TASK_PT_GR11-TASK_SZ_ALGN(%sp), %r11
> + ldo -THREAD_SZ_ALGN(%sp), %r1
> + ldd TI_TASK(%r1), %r1
> + ldd TASK_PT_GR11(%r1), %r11
>
> /* PARANOID: clear user scratch/user space SR's */
> mtsp %r0,%sr0
> @@ -310,7 +314,7 @@
> load32 PA(smp_init_current_idle_task),%sp
> ldd 0(%sp),%sp /* load task address */
> mtctl %sp,%cr30 /* store in cr30 */
> - ldo TASK_SZ_ALGN(%sp),%sp
> + ldo THREAD_SZ_ALGN(%sp),%sp
> tophys_r1 %sp
>
> /* point CPU to kernel page tables */
> =========><=========
>
> and now it boots well but I am very not able to fix it correctly :(.
>
> hth.
>
I don't understand why it works on c3k and not on b2k. Could it be because by b2k has only 256k of physical ram?
Also, I notice that in head64.S there aren't .import like:
[snip]
.import init_thread_union,data
.import $global$ /* forward declaration */
.import fault_vector_11,code /* IVA parisc 1.1 32 bit */
.import fault_vector_20,code /* IVA parisc 2.0 32 bit */
[snip]
as in its 32bit brother head.S
I don't yet find the meaning of '.import' but just in case ;)
hth,
Joel
More information about the parisc-linux
mailing list