Compare commits

...

4 Commits

2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* $Id$ */
/* Copyright (c) 2018-2020 Pierre Pronchery <khorben@defora.org> */
/* Copyright (c) 2018-2025 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS uKernel */
/* Originally from https://wiki.osdev.org/Bare_Bones */
@ -13,11 +13,7 @@
.type __arch_setgdt, @function
#endif
__arch_setgdt:
#if 1
lea gdt_descriptor, %ecx
#else
mov (gdt_descriptor), %ecx
#endif
/* set the offset of the GDT */
mov 0x4(%esp), %eax
mov %eax, 0x2(%ecx)

View File

@ -1,5 +1,5 @@
/* $Id$ */
/* Copyright (c) 2018-2020 Pierre Pronchery <khorben@defora.org> */
/* Copyright (c) 2018-2025 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS uKernel */
/* Originally from https://wiki.osdev.org/Bare_Bones */
@ -125,6 +125,9 @@ _start:
push $0x0
2:
/* enable interrupts */
sti
/* start the loader */
call main
mov %ebp, %esp