[PATCH 16/40] x86: Move base tables to a writer function