Update startup.md

This commit is contained in:
bunnie 2021-04-17 15:03:18 +08:00 committed by GitHub
parent c15d38f2cd
commit 83292bfda2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,15 @@
# Xous Startup Sequence
The loader broadly runs in two phases, called phase 1 and phase 2:
1. Allocate memory and copy stuff into RAM. This is where the tags are copied, and executable data is unpacked into memory. This is almost entirely a copying phase.
2. Allocate and configure pagetables. This more or less does a second pass over the args table (so there's a possible TOCTOU here).
After this it jumps to PID1.
------------
Below is historical notes
This document describes how a running system is established. It is, broadly,
divided into four stages: