__setup_cpu_be problem

Geoff Levand geoffrey.levand at am.sony.com
Wed Feb 8 07:37:32 EST 2006


Arnd,

It seems HID6 is a hypervisor resource...  Can we just have 
'.cpu_setup = __setup_cpu_power4', and you setup your
page sizes somewhere else?

-Geoff

struct cpu_spec	cpu_specs[] = {
	{	/* Cell Broadband Engine */
		.cpu_setup		= __setup_cpu_be,
	},

_GLOBAL(__setup_cpu_be)
        /* Set large page sizes LP=0: 16MB, LP=1: 64KB */
        addi    r3, 0,  0
        ori     r3, r3, HID6_LB
        sldi    r3, r3, 32
        nor     r3, r3, r3
        mfspr   r4, SPRN_HID6
        and     r4, r4, r3
        addi    r3, 0, 0x02000
        sldi    r3, r3, 32
        or      r4, r4, r3
        mtspr   SPRN_HID6, r4
	blr




More information about the Linuxppc64-dev mailing list