This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Setting tty device interrupt priority, spltty()


> #define SPL_IMP      0x01
> #define SPL_NET      0x02
> #define SPL_CLOCK    0x04
> #define SPL_SOFTNET  0x08
> #define SPL_INTERNAL 0x10
> 
> I am not sure on which priority to the tty device (the choices are 0x03 or
> 0x05-0x07 or to simply 
> rearrange the prioritys)
> Any suggestions??

The OpenBSD stack uses priorites. The eCos implementation there is no
prioritisation. These are just bits in a flag and are used in
combination of a mutex to provide mutual exclusion.  So define you
SPL_TTY as 0x20 and add all the other function/macros as needed.

        Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]