Compare commits
4 Commits
9aa1251c70
...
04b87759ef
Author | SHA1 | Date | |
---|---|---|---|
04b87759ef | |||
799964ac2f | |||
3d811ed787 | |||
49ca697b74 |
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user