You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1023 B
ArmAsm

/* See the end of this file for copyright and license terms. */
#include <arch/interrupt.h>
#include <asm/common.h>
.text
/* void x86_load_idt(void) */
ASM_ENTRY(x86_load_idt)
lidt x86_idt_desc
ret
ASM_END(x86_load_idt)
.data
.extern x86_idt
.align 8
.long 0 /* padding */
.word 0 /* ... and another padding */
x86_idt_desc:
.word X86_INTR_COUNT * 16 - 1 /* limit (size in bytes - 1) */
.quad x86_idt /* base */
.size x86_idt_desc, . - x86_idt_desc
/*
* This file is part of GayBSD.
* Copyright (c) 2021 fef <owo@fef.moe>.
*
* GayBSD is nonviolent software: you may only use, redistribute, and/or
* modify it under the terms of the Cooperative Nonviolent Public License
* (CNPL) as found in the LICENSE file in the source code root directory
* or at <https://git.pixie.town/thufie/npl-builder>; either version 7
* of the license, or (at your option) any later version.
*
* GayBSD comes with ABSOLUTELY NO WARRANTY, to the extent
* permitted by applicable law. See the CNPL for details.
*/