x86: MMU: Configure page tables entries for memory domain in swap.
x86: MMU: Configure page tables entries for memory domain in swap.

During swap the required page tables are configured. The outgoing
thread's memory domain pages are reset and the incoming thread's
memory domain is loaded. The pages are configured if userspace
is enabled and if memory domain has been initialized before
calling swap.

GH-3852

Signed-off-by: Adithya Baglody <06b44f6fa9a97a2b955c2d2cd070279967447860@intel.com>

finikorg/zephyr,punitvara/zephyr,nashif/zephyr,punitvara/zephyr,nashif/zephyr,galak/zephyr,zephyriot/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,explora26/zephyr,aceofall/zephyr-iotos,zephyriot/zephyr,galak/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,mbolivar/zephyr,ldts/zephyr,aceofall/zephyr-iotos,galak/zephyr,finikorg/zephyr,mbolivar/zephyr,galak/zephyr,Vudentz/zephyr,finikorg/zephyr,ldts/zephyr,mbolivar/zephyr,punitvara/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,zephyriot/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,mbolivar/zephyr,explora26/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,Vudentz/zephyr,nashif/zephyr,finikorg/zephyr,Vudentz/zephyr,kraj/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,galak/zephyr,explora26/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,aceofall/zephyr-iotos,ldts/zephyr,punitvara/zephyr,punitvara/zephyr,Vudentz/zephyr,nashif/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,nashif/zephyr,zephyriot/zephyr,Vudentz/zephyr