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