Compare commits

...

4 Commits

2 changed files with 5 additions and 6 deletions

View File

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

View File

@ -1,5 +1,5 @@
/* $Id$ */ /* $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 */ /* This file is part of DeforaOS uKernel */
/* Originally from https://wiki.osdev.org/Bare_Bones */ /* Originally from https://wiki.osdev.org/Bare_Bones */
@ -125,6 +125,9 @@ _start:
push $0x0 push $0x0
2: 2:
/* enable interrupts */
sti
/* start the loader */ /* start the loader */
call main call main
mov %ebp, %esp mov %ebp, %esp