x86: Move constants to the only place where they are used

Signed-off-by: Martin Storsjö <martin@martin.st>