So you want to integrate a kind of statemachine, were the states and there functionallity are stored as assembler code into RAM. I like the idea, but it's also dangerous to debug. Because you may be not able to track in which state a kernel currently is, because to identify the state on the memory dump is quit hard.Essentially, this allows us to remove certain if statements from the kernel, or more importantly, #ifdefs from the kernel, where the outcome of the if is allways the same on the running machine.
Best Regards Stephan