diff options
Diffstat (limited to 'kernel/boot/init/crti.s')
-rw-r--r-- | kernel/boot/init/crti.s | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/kernel/boot/init/crti.s b/kernel/boot/init/crti.s index 8f86ffa..e3ddc32 100644 --- a/kernel/boot/init/crti.s +++ b/kernel/boot/init/crti.s @@ -1,33 +1,29 @@ -/* - * bubbl - * Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ +;; +;; bubbl +;; Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com> +;; +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <http://www.gnu.org/licenses/>. +;; -.section .init -.global _init -.type _init, @function +section .init +global _init _init: - push %ebp - mov %esp, %ebp - /* gcc will nicely put the contents of crtbegin.o's .init section here. */ + push ebp + mov ebp, esp -.section .fini -.global _fini -.type _fini, @function +section .fini +global _fini _fini: - push %ebp - mov %esp, %ebp - /* gcc will nicely put the contents of crtbegin.o's .fini section here. */ + push ebp + mov ebp, esp |