Mirror of CollapseOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
753B

  1. anatomy. First, we have constants. Some of them are device-
  2. specific, but some of them are always there. RAMSTART is the
  3. address at which the RAM starts on the system. System variables
  4. will go there and HERE will go after it.
  5. RS_ADDR is where RSP starts and PS_ADDR is where PSP starts.
  6. RSP and PSP are designed to be contiguous. RSP goes up and PSP
  7. goes down. If they meet, we know we have a stack overflow.
  8. Then, we load the assembler and cross compilation unit, which
  9. will be needed for the task ahead.
  10. Then, it's a matter of adding layer after layer. For most
  11. system, all those layers except the drivers will be added the
  12. same way. Drivers are a bit tricker and machine specific. I
  13. can't help you there, you'll have to use your wits. (cont.)