Add driver to the kernel space

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Mar 28 09:51:58 UTC 2019


On 28/03/2019 10:44, Ярослав Лещинский wrote:
> Hello,
>
> I wrote spidev driver. In user space it works fine, but when I moved 
> them into the kernel as a part of BSP(calling from bspstart.c) I've 
> got RTEMS_FATAL_SOURCE_EXCEPTION.
>
> Could you please tell me what is a proper way to add driver into the 
> kernel space?

There is no kernel/user space separation in RTEMS. In the early startup 
(bspstart.c) you cannot anything which uses threads since no thread 
exists yet. You should do you high level initialization in the 
initialization thread.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the users mailing list