x86: Move CSRT table to a writer function