Subject: Re: CVS commit: src/sys/sys
To: None <chs@NetBSD.org>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: source-changes
Date: 07/18/2004 19:07:31
Chuck Silvers <chs@NetBSD.org> writes:

> Module Name:	src
> Committed By:	chs
> Date:		Sun Jul 18 22:34:21 UTC 2004
> 
> Modified Files:
> 	src/sys/sys: ras.h
> 
> Log Message:
> declare RAS labels as "const char foo[]" instead of functions.
> on hppa, function pointers are funky so let's just avoid them here.

This probably causes problems on SH5, where function pointers have a
significant bottom bit, which differs from character pointers. 

From pthread_lock.c rev 1.4 (before the RAS_() macros):

>revision 1.4
>date: 2003/01/22 13:52:03;  author: scw;  state: Exp;  lines: +5 -4
>pthread__lock_ras_start and pthread__lock_ras_end need to be declared
>as function pointers, not character arrays, for the benefit of
>platforms (e.g. SH5) where the two types are quite distinct.

        - Nathan