Passing vector number (was Re: API modification request)

Joel Sherrill joel.sherrill at
Tue Feb 4 14:29:47 UTC 2003

Eric Valette wrote:
> Sergei Organov wrote:
> > Please keep in mind that unfortunately you don't see all the code. There could
> > be proprietary code that relies on features you change...
> Using such argument, you will never change anything. I think on the
> contrary that people not submitting their code/improvement should be
> biten as hard as possible so that next time they submit (at least part
> of) their code :-)

First, there will be a release without this proposed change.

Second, this is a minor change to the API which is easy to ignore.  When
someone upgrades, they will find themselves passing a NULL or casting
vector number as a pointer.  This isn't the worst API change ever made.
I don't take making API changes likely and this one is no different.

I can see easily adding a new rtems_interrupt_catch_XXX and having
the old one pass in the vector number cast to rtems_interrupt_arg.
That would preserve compatability even if it does involve an
integer to pointer cast which gives me queasy feelings. :)

> --
>     __
>    /  `                         Eric Valette
>   /--   __  o _.                6 rue Paul Le Flem
> (___, / (_(_(__                 35740 Pace
> Tel: +33 (0)2 99 85 26 76       Fax: +33 (0)2 99 85 26 76
> E-mail: eric.valette at

Joel Sherrill, Ph.D.             Director of Research & Development
joel at                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the users mailing list