bootloader 0.2.0-alpha-003

An experimental pure-Rust x86 bootloader.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.section .context_switch, "awx"
.code64

# Expected arguments:
# - boot info ptr in `rdi`
# - entry point address in `rsi`
# - stack pointer in `rdx`
context_switch:

    # load stack pointer
    mov rsp, rdx

    # jump to entry point
    jmp rsi
context_switch_spin:
    jmp context_switch_spin