arch/x86: refactor kernel_arch_data.h

Some definitions may be shared between subarchitectures, so refactor
accordingly. The definitions are also modified to separate bits. A
placeholder is created for the Intel64 definitions.

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
Charles E. Youse 2019-07-04 12:10:49 -07:00 committed by Andrew Boie
commit 5e10d590c6
3 changed files with 27 additions and 12 deletions

View file

@ -68,17 +68,6 @@
#define _FP_USER_MASK (K_FP_REGS)
#endif
/*
* EFLAGS value to utilize for the initial context: IF=1.
*/
#define EFLAGS_INITIAL 0x00000200U
/* Enable paging and write protection */
#define CR0_PG_WP_ENABLE 0x80010000
/* Set the 5th bit in CR4 */
#define CR4_PAE_ENABLE 0x00000020
#ifndef _ASMLANGUAGE
#include <sys/util.h>