Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/sys



Chuck Silvers <chs%NetBSD.org@localhost> 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



Home | Main Index | Thread Index | Old Index