[PATCH] kernelbase: don't hardcode magic constants