<commit_before>; List references
extern kernel_entry
global _start
; Multiboot Header

MBALIGN  equ 1 << 0
MEMINFO  equ 1 << 1
FLAGS    equ MBALIGN | MEMINFO
MAGIC    equ 0x1BADB002
CHECKSUM equ -(MAGIC + FLAGS)

section .multiboot
    align 4
        dd MAGIC
        dd FLAGS
        dd CHECKSUM

; Bootstrap Stack
section .bootstrap_stack
    align 4
        stack_bottom:
            times 8192 db 0
        stack_top:

_start:
    ; This is the kernels true "entry point"
    ; What we need to do first is setup the stack to a known state.
    mov esp, stack_top
    ; Okay, the stack is setup so we can call functions, and we have 8kb of stack to work with.
    ; Since kernel_entry is the root of the callframe (as there is no callframe yet!) we can just call it.
    call kernel_entry
    ; If the computer gets here, something wrong happened and kernel_entry aborted. 
    ; We know nothing about the state of the computer at this point, and can only halt in a loop after clearing interupts.
    cli
.error_loop: ; The . means its local, like static in C.
    hlt
    jmp .error_loop<commit_msg>Style: Fixed start.s comments from being stupid<commit_after>; List references
extern kernel_entry
global _start
; Multiboot Header

MBALIGN  equ 1 << 0
MEMINFO  equ 1 << 1
FLAGS    equ MBALIGN | MEMINFO
MAGIC    equ 0x1BADB002
CHECKSUM equ -(MAGIC + FLAGS)

section .multiboot
    align 4
        dd MAGIC
        dd FLAGS
        dd CHECKSUM

; Bootstrap Stack
section .bootstrap_stack
    align 4
        stack_bottom:
            times 8192 db 0
        stack_top:

_start:
	; Setup Stack
    mov esp, stack_top
	; Call kernel
    call kernel_entry
    cli
.error_loop: ; The . means its local, like static in C.
    hlt
    jmp .error_loop
{'fraction_non_alphanumeric': 0.04576659038901602, 'fraction_numerical': 0.01887871853546911, 'mean_word_length': 2.5404858299595143, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7303105', 'n_tokens_mistral': 580, 'n_tokens_neox': 526, 'n_words': 239}