Lines Matching +full:boot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* -*- linux-c -*- ------------------------------------------------------- *
5 * Copyright 2007 rPath, Inc. - All Rights Reserved
8 * ----------------------------------------------------------------------- */
11 * Main module for the real-mode kernel code
15 #include "boot.h"
26 * Copy the header into the boot parameter block. Since this
27 * screws up the old-style command line protocol, adjust by
28 * filling in the new-style command line pointer instead.
41 if (!boot_params.hdr.cmd_line_ptr && oldcmd->cl_magic == OLD_CL_MAGIC) { in copy_boot_params()
42 /* Old-style command line protocol */ in copy_boot_params()
50 if (oldcmd->cl_offset < boot_params.hdr.setup_move_size) in copy_boot_params()
55 boot_params.hdr.cmd_line_ptr = (cmdline_seg << 4) + oldcmd->cl_offset; in copy_boot_params()
104 * Tell the BIOS what CPU mode we intend to run in.
123 stack_end = (char *) (current_stack_pointer - STACK_SIZE); in init_heap()
128 /* Boot protocol 2.00 only, no heap available */ in init_heap()
137 /* First, copy the boot header into the "zeropage" */ in main()
140 /* Initialize the early-boot console */ in main()
150 puts("Unable to boot - please use a kernel appropriate for your CPU.\n"); in main()
154 /* Tell the BIOS what CPU mode we intend to run in */ in main()
176 /* Set the video mode */ in main()
179 /* Do the last things and invoke protected mode */ in main()