i8259A PIC fixes:
commit85c2a6deccf38a2e537d2cc41ad5e56d62fa5280
authorneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Wed, 21 Feb 2018 21:28:34 +0000 (21 21:28 +0000)
committerneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Wed, 21 Feb 2018 21:28:34 +0000 (21 21:28 +0000)
tree5f38b6f5b5669dba9060c865d66c36349a15578e
parent585ea9c1aa1f61919d5424995b02ed7965aaec34
i8259A PIC fixes:
 - Include size of zero-length i8259a_Private structure in size of memory
   allocation for i8259A private data in case it grows in future.
 - Take IDT pointer directly from __KernBootPrivate instead of from
   KernelBase->kb_PlatformData->kb_APIC; the latter will be NULL if there's
   no APIC (which is probably why we're using the i8259A!).
 - IRQs on the slave PIC were not disabled during initialisation because of
   a typo (">" was used on the mask value instead of ">>"). Fixed.
 - Fixed a signedness error with checking the result of probing for a PIC.
   Now the PIC can be detected.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@55051 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
arch/all-pc/kernel/pic_i8259a.c