/* -*- linux-c -*- ------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright 2007 rPath, Inc. - All Rights Reserved * Copyright 2009 Intel Corporation; author H. Peter Anvin * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2. * * ----------------------------------------------------------------------- */
char *HEAP = _end; char *heap_end = _end; /* Default end of heap = no heap */
/* * Copy the header into the boot parameter block. Since this * screws up the old-style command line protocol, adjust by * filling in the new-style command line pointer instead. */
if (!boot_params.hdr.cmd_line_ptr && oldcmd->cl_magic == OLD_CL_MAGIC) { /* Old-style command line protocol. */ u16 cmdline_seg;
/* Figure out if the command line falls in the region of memory that an old kernel would have copied up to 0x90000... */ if (oldcmd->cl_offset < boot_params.hdr.setup_move_size) cmdline_seg = ds(); else cmdline_seg = 0x9000;
/* * Set the keyboard repeat rate to maximum. Unclear why this * is done here; this might be possible to kill off as stale code. */ static void keyboard_set_repeat(void) { struct biosregs ireg; initregs(&ireg); ireg.ax = 0x0305; intcall(0x16, &ireg, NULL); }