linux/arch/x86/boot/pm.c

// SPDX-License-Identifier: GPL-2.0-only
/* -*- linux-c -*- ------------------------------------------------------- *
 *
 *   Copyright (C) 1991, 1992 Linus Torvalds
 *   Copyright 2007 rPath, Inc. - All Rights Reserved
 *
 * ----------------------------------------------------------------------- */

/*
 * Prepare the machine for transition to protected mode.
 */

#include "boot.h"
#include <asm/desc_defs.h>
#include <asm/segment.h>

/*
 * Invoke the realmode switch hook if present; otherwise
 * disable all interrupts.
 */
static void realmode_switch_hook(void)
{}

/*
 * Disable all interrupts at the legacy PIC.
 */
static void mask_all_interrupts(void)
{}

/*
 * Reset IGNNE# if asserted in the FPU.
 */
static void reset_coprocessor(void)
{}

/*
 * Set up the GDT
 */

struct gdt_ptr {} __attribute__((packed));

static void setup_gdt(void)
{}

/*
 * Set up the IDT
 */
static void setup_idt(void)
{}

/*
 * Actual invocation sequence
 */
void go_to_protected_mode(void)
{}