Kernel - Move debug hooks to common handler

UCC git Repository :: git.ucc.asn.au