#define ASM_FILE
#include "multiboot.hpp"
.set FLAGS, (MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO)
.set CHECKSUM, -(MULTIBOOT_HEADER_MAGIC + FLAGS)
.section .multiboot
.align 4
.long MULTIBOOT_HEADER_MAGIC
.long FLAGS
.long CHECKSUM
.section .text
.extern kernelEntry
.extern callConstructors
.global _start
.global hang
.global stop
_start:
mov $kernel_stack, %esp
call callConstructors
push %eax
push %ebx
call kernelEntry
hang:
cli
stop:
hlt
jmp stop
.section .bss
.space 2*1024*1024; # 2 MiB
kernel_stack:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/tos
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/tos
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master