steve-s/gyarab-kernel — pull request #2 by steve-s (2012-10-21 12:56:16+00:00)
Title: Infrastructure for generic interrupts handlers

- if some component wants to handle certain interrupt,
it can register its interrupt handler with interrupt_handler_register function

- scheduler changed so that it uses this facility

- macros for list manipulation: foreach and cast (for casting list items) + test for them

V linuxu je to delane tak, ze handlery jsou v poli konstantni velikosti a indexem je cislo interruptu. Prislo mi, ze pro nase ucely je to zbytecne komplikovane, protoze cisla interruptu nezacinaji na nule (coz by trochu kompilovalo ten kod) a handleru interruptu budeme mit jenom par, takze by to pole bylo skoro prazdne a pritom by se muselo projit cele.