thp: add pmd mangling functions to x86