Hmm, it looks a little bit better, but why do you want to call
enable_IO_APIC() separately in the first place? There is a comment
stating: "Enable IO APIC before setting up error vector," but why is it
needed on 64-bit systems? Especially as the very same system may run a
32-bit kernel and then it suddenly would not have to do this anymore?
Strange...
Also since you are cleaning up this code -- why don't you actually take
the opportunity and get rid of the horrible #ifdefs interspersed
throughout?
Maciej
--