Subject: Re: CVS commit: src/sys/lib/libkern/arch/sh3
To: None <nonaka@netbsd.org>
From: Masao Uebayashi <uebayasi@brains.co.jp>
List: source-changes
Date: 04/18/2006 09:49:36
> Modified Files:
> 	src/sys/lib/libkern/arch/sh3: byte_swap_2.S byte_swap_4.S
> 
> Log Message:
> Always _LOCORE is defined for standalone program.

> Index: src/sys/lib/libkern/arch/sh3/byte_swap_2.S
> diff -u src/sys/lib/libkern/arch/sh3/byte_swap_2.S:1.5 src/sys/lib/libkern/arch/sh3/byte_swap_2.S:1.6
> --- src/sys/lib/libkern/arch/sh3/byte_swap_2.S:1.5	Sat Feb  4 22:24:26 2006
> +++ src/sys/lib/libkern/arch/sh3/byte_swap_2.S	Fri Apr 14 09:23:01 2006
> @@ -27,6 +27,9 @@
>   */
>  
>  #include <machine/asm.h>
> +
> +#undef _LOCORE
> +#define	_LOCORE		/* XXX not really, just assembly-code source */
>  #include <machine/endian.h>
>  
>  ENTRY(bswap16)

I think _LOCORE is defined for assembly-code source, is the only way
to tell the fact to headers, and I'm always doing so locally.

Masao