Re: CVS commit: src/sys/kern

2009-03-27 Thread Christos Zoulas
In article <20090327152624.gu6...@ojctech.com>,
David Young   wrote:
>On Thu, Mar 26, 2009 at 08:51:05PM +, David Laight wrote:
>> On Wed, Mar 25, 2009 at 09:48:37PM +, David Young wrote:
>> > Module Name:   src
>> > Committed By:  dyoung
>> > Date:  Wed Mar 25 21:48:37 UTC 2009
>> > 
>> > Modified Files:
>> >src/sys/kern: subr_autoconf.c
>> > 
>> > Log Message:
>> > ctags(1) gets confused by 'typedef struct X { } X_t', so break 'typedef
>> > struct pmf_private { ... } pmf_private_t' into a struct definition and a
>> > typedef definition.
>> 
>> Surely it is better to fix ctags 
>
>I have neither the time nor the inclination. :-)
>

That was a 1 character addition in C.c. Can you revert it now?

christos



Re: CVS commit: src/sys/dev/sbus

2009-03-27 Thread Izumi Tsutsui
a...@netbsd.org wrote:

> It worked for the console when I checked it in (haven't touched it since).
> I think I remember now what SETREG() might have been about. The compiler
> was generating sub-word writes, or something along those lines.

3.1_STABLE works, 4.0_STABLE and 5.0_RC3 don't work, and
5.0_RC3 with zx.o compiled by gcc3 works.
---
Izumi Tsutsui


Re: CVS commit: src/sys/dev/sbus

2009-03-27 Thread Andrew Doran
On Fri, Mar 27, 2009 at 04:31:33PM -0400, Michael wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hello,
> 
> On Mar 27, 2009, at 9:07 AM, Izumi Tsutsui wrote:
> 
> >a...@netbsd.org wrote:
> >
> >>On Fri, Mar 27, 2009 at 12:25:41PM +, Izumi Tsutsui wrote:
> >>
> >>>Log Message:
> >>>Use bus_space(9) to access registers.  SETREG() macro using bogus  
> >>>casts
> >>>against packed structures doesn't work on gcc4. (no character on  
> >>>screen)
> >>>See also:
> >>>http://mail-index.NetBSD.org/port-sparc/2003/11/11/0002.html
> >>
> >>It has been a long time, but from what I remember SETREG() was an  
> >>invention
> >>of mine to work around either a compiler or code bug. Maybe  
> >>bus_space does
> >>the same.
> >
> >I'm not sure if it's a compiler bug or not, but SETREG() doesn't work
> >on gcc4 while it's confirmed working on gcc3.
> >(as the noted in the above mail, it looks generating byte access code)
> >
> >Removing __packed might also help, but bus_space(9) just works
> >and it's a right way to go, I think.
> 
> I strongly agree - I've been trying to get our zx driver to work for a  
> while but got sidetracked by other stuff ( mostly sgimips-related ) -  
> thanks for doing this. Writing an accelerated Xorg driver is next on  
> my todo list ( after adding wscons support to zx )

It worked for the console when I checked it in (haven't touched it since).
I think I remember now what SETREG() might have been about. The compiler
was generating sub-word writes, or something along those lines.


Re: CVS commit: src/sys/dev/sbus

2009-03-27 Thread Michael

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

On Mar 27, 2009, at 9:07 AM, Izumi Tsutsui wrote:


a...@netbsd.org wrote:


On Fri, Mar 27, 2009 at 12:25:41PM +, Izumi Tsutsui wrote:


Log Message:
Use bus_space(9) to access registers.  SETREG() macro using bogus  
casts
against packed structures doesn't work on gcc4. (no character on  
screen)

See also:
http://mail-index.NetBSD.org/port-sparc/2003/11/11/0002.html


It has been a long time, but from what I remember SETREG() was an  
invention
of mine to work around either a compiler or code bug. Maybe  
bus_space does

the same.


I'm not sure if it's a compiler bug or not, but SETREG() doesn't work
on gcc4 while it's confirmed working on gcc3.
(as the noted in the above mail, it looks generating byte access code)

Removing __packed might also help, but bus_space(9) just works
and it's a right way to go, I think.


I strongly agree - I've been trying to get our zx driver to work for a  
while but got sidetracked by other stuff ( mostly sgimips-related ) -  
thanks for doing this. Writing an accelerated Xorg driver is next on  
my todo list ( after adding wscons support to zx )


have fun
Michael

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSc03pspnzkX8Yg2nAQKKxQf/YUc7aXT66Jd1Vfe4l3eli7+j3IM1DDmY
qPmTLfEMNXfEsSnNAG3P3pWGSLPtRuq/miQDNe8VRhT9SEuiULTt30VX/BzNEg73
PxrQ1gd+59UzeETijZd+dK5ggvGvXuHoSqOB65J6f/eqxvOcZwL26FdrIDQ0OPqg
eOj7AzgyJZ4Z9NmqTDit8PsgTLxNoG1BQbuhqDynw8e4y0IKYZ52yoNRuLDwoUzl
Y7xURm+BXLhQuRTrjWs8UFw6Y+dIikLihOSAh0f0T3qXQcnrXc1fNGh+eHJOzEmG
OWsYS6Dx3j1QB+BDEixzg5/2yFoD8YZhgbqy5lpP7scLZjhzahWUQg==
=xXJG
-END PGP SIGNATURE-


Re: CVS commit: src/sys/kern

2009-03-27 Thread David Young
On Thu, Mar 26, 2009 at 08:51:05PM +, David Laight wrote:
> On Wed, Mar 25, 2009 at 09:48:37PM +, David Young wrote:
> > Module Name:src
> > Committed By:   dyoung
> > Date:   Wed Mar 25 21:48:37 UTC 2009
> > 
> > Modified Files:
> > src/sys/kern: subr_autoconf.c
> > 
> > Log Message:
> > ctags(1) gets confused by 'typedef struct X { } X_t', so break 'typedef
> > struct pmf_private { ... } pmf_private_t' into a struct definition and a
> > typedef definition.
> 
> Surely it is better to fix ctags 

I have neither the time nor the inclination. :-)

Dave

-- 
David Young OJC Technologies
dyo...@ojctech.com  Urbana, IL * (217) 278-3933


Re: CVS commit: src/sys/dev/sbus

2009-03-27 Thread Izumi Tsutsui
a...@netbsd.org wrote:

> On Fri, Mar 27, 2009 at 12:25:41PM +, Izumi Tsutsui wrote:
> 
> > Log Message:
> > Use bus_space(9) to access registers.  SETREG() macro using bogus casts
> > against packed structures doesn't work on gcc4. (no character on screen)
> > See also:
> > http://mail-index.NetBSD.org/port-sparc/2003/11/11/0002.html
> 
> It has been a long time, but from what I remember SETREG() was an invention
> of mine to work around either a compiler or code bug. Maybe bus_space does
> the same.

I'm not sure if it's a compiler bug or not, but SETREG() doesn't work
on gcc4 while it's confirmed working on gcc3.
(as the noted in the above mail, it looks generating byte access code)

Removing __packed might also help, but bus_space(9) just works
and it's a right way to go, I think.
---
Izumi Tsutsui


Re: CVS commit: src/sys/dev/sbus

2009-03-27 Thread Andrew Doran
On Fri, Mar 27, 2009 at 12:25:41PM +, Izumi Tsutsui wrote:

> Log Message:
> Use bus_space(9) to access registers.  SETREG() macro using bogus casts
> against packed structures doesn't work on gcc4. (no character on screen)
> See also:
> http://mail-index.NetBSD.org/port-sparc/2003/11/11/0002.html

It has been a long time, but from what I remember SETREG() was an invention
of mine to work around either a compiler or code bug. Maybe bus_space does
the same.