Hi,
I build Jailhouse on RPi4 using 5.3 Kernel and it is working nice. I need
to toggle a GPIO pin. I tried baremetal code but I figured out, that I must
map the peripheral using specifically this function:
p->mem_fd = open("/dev/mem", O_RDWR|O_SYNC);
So, I need the following headers to be included:
/*For munmap, MAP_FAILED, MAP_SHARED, PROT_READ, PROT_WRITE*/
#include <sys/mman.h>
/* For open(), creat() */
#include <unistd.h>
/* For O_RDWR */
#include <fcntl.h>
What could be a clean way, to add such headers into jailhouse, I have my
own header-which describes addresses of GPIO registers- added to
/inmates/lib/include, but is there any possible way to add these headers?
Thanks in advance
Moustafa Noufale
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/cd1adc59-e867-4ce1-a6ea-371ae1754cdan%40googlegroups.com.