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