[PATCH 8/19] powerpc: interfaces to the hypervisor of Celleb

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Thu Dec 14 19:32:40 EST 2006


On Thu, 14 Dec 2006, Ishizaki Kou wrote:
> --- /dev/null	Wed Dec 13 21:32:01 2006
> +++ linux-powerpc-git/arch/powerpc/platforms/celleb/hvCall_macro.S	Wed Dec 13 18:37:14 2006

> +#define	__define_beat_callup_handler_NOOUTS(name, id)		\
> +_GLOBAL(beat_##name)						\
> +	HCALL_MEDIUM;						\
> +	mflr	r0;						\
> +	std	r0, 16(r1);					\
> +	HCALL_INST_PRECALL;					\
> +	LOAD_CONST64(r11,id);					\
> +	HVSC;							\
> +	HCALL_INST_POSTCALL;					\
> +	ld	r0, 16(r1);					\
> +	mtlr	r0;						\
> +	blr

`id' is always the name prefixed with `HV_'? In that case you can use
`HV_##name', so you don't have to pass the number.

> --- /dev/null	Wed Dec 13 21:32:02 2006
> +++ linux-powerpc-git/arch/powerpc/platforms/celleb/hvCall.S	Wed Dec 13 18:37:14 2006

> +__define_beat_callup_handler_OUT2(4, allocate_memory, (0))
                                                         ^^^
I.e., these can go away.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven at sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium



More information about the Linuxppc-dev mailing list