Lines Matching +full:reset +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <asm/processor-flags.h>
7 #include <asm/msr-index.h>
12 * mode and jumping to the BIOS reset entry point, as if the CPU has
13 * really been reset. The previous version asked the keyboard
14 * controller to pulse the CPU reset line, which is more thorough, but
31 /* Disable paging to drop us out of long mode */
47 /* Set up the IDT for real mode. */
52 * mode. The GDT is not used in real mode; it is just needed here to
58 * Load the data segment registers with 16-bit compatible values
70 * This is 16-bit protected mode code to disable paging and the cache,
71 * switch to real mode and jump to the BIOS reset code.
73 * The instruction that switches to real mode by writing to CR0 must be
75 * valid value for real mode, and flushes the prefetch queue to avoid
77 * mode.
80 * (protected-mode enable) and TS (task switch for coprocessor state
83 * is more like the state of a 486 after reset. I don't know if
86 * More could be done here to set up the registers as if a CPU reset had
105 testl $0x60000000, %edx /* If no cache bits -> no wbinvd */
133 .word 0xffff /* Length - real mode default value */
134 .long 0 /* Base - real mode default value */
139 /* Self-pointer */
140 .word 0xffff /* Length - real mode default value */
145 * 16-bit code segment pointing to real_mode_seg
153 * 16-bit data segment with the selector value 16 = 0x10 and
154 * base value 0x100; since this is consistent with real mode