xaizek / tos (License: GPLv3 only) (since 2018-12-07)
This is an alternative version of sources presented as part of Write Your Own OS video tutorial by Viktor Engelmann.
<root> / src / loader.S (9fb3969d5923a72c413cb1e2327c781bb8a3b9a3) (568B) (mode 100644) [raw]
#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:
Hints

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