trivial: Use heading levels in readmes
diff --git a/README.md b/README.md index 770aad2..6b07e1a 100644 --- a/README.md +++ b/README.md
@@ -18,7 +18,7 @@ process would expect to need at start and provides additional utilities for delegating the creation of processes and threads. -# Standard Processes +## Standard Processes All processes (except for the root task) will use the entry-points provided here as normal and require the `_start` entry-point provided in @@ -30,7 +30,7 @@ `__sel4_start_main` which configures the runtime before starting `main`. -# Root Task +## Root Task The root task requires an alternate entry-point `_sel4_start` which assumes that the `seL4_BootInfo` argument has been passed to it and that @@ -42,7 +42,7 @@ `main`, into `__sel4_start_main` which configures the runtime before starting `main`. -# Thread-local storage layout +## Thread-local storage layout There are two standard layouts for thread local storage commonly used. One where the TLS base address refers to the first address in memory of
diff --git a/crt/README.md b/crt/README.md index feec0e7..afa52c4 100644 --- a/crt/README.md +++ b/crt/README.md
@@ -24,7 +24,7 @@ symbols and occurs in the linker arguments after all other object files. -# Constructors and Destructors. +## Constructors and Destructors. The C runtime provides a mechanism for providing functions to be executed before and after `main` as constructors and destructors for @@ -50,7 +50,7 @@ [system-v-abi]: http://www.sco.com/developers/gabi/latest/ch4.sheader.html#special_sections -# The `_start` Symbol +## The `_start` Symbol Arguments to `_start` are on the stack for all platforms. The top of the stack is structured as so:
diff --git a/crt/sel4_arch/aarch32/Convention.md b/crt/sel4_arch/aarch32/Convention.md index efea5d9..7d76300 100644 --- a/crt/sel4_arch/aarch32/Convention.md +++ b/crt/sel4_arch/aarch32/Convention.md
@@ -20,7 +20,7 @@ * The stack must always be double-word aligned, i.e. `sp` mod 8 == 0. -# Prologue +## Prologue 1. push the value of `lr` onto the stack, 2. push the value of `fp` onto the stack, then @@ -31,7 +31,7 @@ mov fp, sp ``` -# Epilogue +## Epilogue ```asm ldmia sp!, {fp, lr}
diff --git a/crt/sel4_arch/aarch64/Convention.md b/crt/sel4_arch/aarch64/Convention.md index cb6cc76..bfbe758 100644 --- a/crt/sel4_arch/aarch64/Convention.md +++ b/crt/sel4_arch/aarch64/Convention.md
@@ -23,7 +23,7 @@ * The stack must always be quad-word aligned, i.e. `sp` mod 16 == 0. -# Prologue +## Prologue 1. push the value of `lr` onto the stack, 2. push the value of `fp` onto the stack, then @@ -34,7 +34,7 @@ mov fp, sp ``` -# Epilogue +## Epilogue ```asm ldp fp, lr, [sp], #16
diff --git a/crt/sel4_arch/ia32/Convention.md b/crt/sel4_arch/ia32/Convention.md index f673fea..2a38c6b 100644 --- a/crt/sel4_arch/ia32/Convention.md +++ b/crt/sel4_arch/ia32/Convention.md
@@ -38,7 +38,7 @@ is the responsibility of the caller to re-align the stack if this occurs. -# Prologue +## Prologue 1. push `%ebp` onto the stack, 2. read the current value of `%esp` into `%ebp` @@ -51,14 +51,14 @@ sub $0x8, %esp ``` -# Epilogue +## Epilogue ```asm leave ret ``` -# Argument Passing +## Argument Passing Arguments are passed on the stack in `%ebp+4+(4 * n)` (between the return address and the return frame pointer).
diff --git a/crt/sel4_arch/riscv32/Convention.md b/crt/sel4_arch/riscv32/Convention.md index a7694a2..d6fda5b 100644 --- a/crt/sel4_arch/riscv32/Convention.md +++ b/crt/sel4_arch/riscv32/Convention.md
@@ -17,7 +17,7 @@ * `a0` to `a7` are used to pass the first 8 arguments to a subroutine. * `a0` to `a1` are used to subroutine return values. -# Prologue +## Prologue 1. push the value of `ra` onto the stack, 2. push the value of `fp` onto the stack, then @@ -30,7 +30,7 @@ addi s0, sp, 0 ``` -# Epilogue +## Epilogue ```asm addi sp, s0, 0
diff --git a/crt/sel4_arch/riscv64/Convention.md b/crt/sel4_arch/riscv64/Convention.md index 411b2f6..d632de9 100644 --- a/crt/sel4_arch/riscv64/Convention.md +++ b/crt/sel4_arch/riscv64/Convention.md
@@ -17,7 +17,7 @@ * `a0` to `a7` are used to pass the first 8 arguments to a subroutine. * `a0` to `a1` are used to subroutine return values. -# Prologue +## Prologue 1. push the value of `ra` onto the stack, 2. push the value of `fp` onto the stack, then @@ -30,7 +30,7 @@ addi s0, sp, 0 ``` -# Epilogue +## Epilogue ```asm addi sp, s0, 0
diff --git a/crt/sel4_arch/x86_64/Convention.md b/crt/sel4_arch/x86_64/Convention.md index 3e25791..7f8157f 100644 --- a/crt/sel4_arch/x86_64/Convention.md +++ b/crt/sel4_arch/x86_64/Convention.md
@@ -35,7 +35,7 @@ function is called that the stack remains aligned to 16-bytes up to the `call` instruction. -# Prologue +## Prologue 1. push `%rbp` onto the stack, 2. read the current value of `%rsp` into `%rbp` @@ -49,14 +49,14 @@ // subq $0x0, %rsp ``` -# Epilogue +## Epilogue ```asm leave ret ``` -# Argument Passing +## Argument Passing Arguments are passed first using registers `%rdi`, `%rsi`, `%rdx`, `%rcx`, `%r8`, `%r9`, `%xmm0`–`%xmm7`, then on the stack in