Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don't have to do int2ptr for mmio or absolute addresses, you can punt that to the linker.

    extern struct uart UART0;
Then place that symbol at address X in your linker script.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: