diff options
author | Christian Cunningham <cc@localhost> | 2022-01-25 13:33:37 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-25 13:33:37 -0700 |
commit | f149d8e0e3f7785a6b8906d0914c301a5abcb8a3 (patch) | |
tree | c2d0d845b680065970b6191b2ebe62f57e4c9f3f | |
parent | f56358794159c1fb7af01dbe1e0fab3603de8ff5 (diff) |
Updated README
-rw-r--r-- | README.md | 87 | ||||
-rw-r--r-- | src/boot.S | 1 |
2 files changed, 45 insertions, 43 deletions
@@ -1,60 +1,61 @@ # Jobbed ## Supplemental Links -- https://www.raspberrypi.com/documentation/computers/processors.html -- https://datasheets.raspberrypi.com/bcm2835/bcm2835-peripherals.pdf -- https://datasheets.raspberrypi.com/bcm2836/bcm2836-peripherals.pdf -- https://github.com/eggman/raspberrypi/tree/master/qemu-raspi2 -- https://github.com/eggman/FreeRTOS-raspi3/blob/master/Demo/FreeRTOS_tick_config.c -- https://developer.arm.com/documentation/dui0802/b/A64-General-Instructions/A64-general-instructions-in-alphabetical-order?lang=en -- https://wiki.osdev.org/ARM_RaspberryPi -- https://elinux.org/RPi_Framebuffer -- https://github.com/bztsrc/raspi3-tutorial -- https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials - -- // PRIV LEVL: https://developer.arm.com/documentation/den0013/d/ARM-Processor-Modes-and-Registers -- // MODES: https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/ARM-processor-modes?lang=en -- // EXCEPTION HANDLING: https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/Exception-handling?lang=en -- // MODE REGISTERS: https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/ARM-core-registers?lang=en + - https://www.raspberrypi.com/documentation/computers/processors.html + - https://datasheets.raspberrypi.com/bcm2835/bcm2835-peripherals.pdf + - https://datasheets.raspberrypi.com/bcm2836/bcm2836-peripherals.pdf + - https://github.com/eggman/raspberrypi/tree/master/qemu-raspi2 + - https://github.com/eggman/FreeRTOS-raspi3/blob/master/Demo/FreeRTOS_tick_config.c + - https://developer.arm.com/documentation/dui0802/b/A64-General-Instructions/A64-general-instructions-in-alphabetical-order?lang=en + - https://wiki.osdev.org/ARM_RaspberryPi + - https://elinux.org/RPi_Framebuffer + - https://github.com/bztsrc/raspi3-tutorial + - https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials + + - // PRIV LEVL: https://developer.arm.com/documentation/den0013/d/ARM-Processor-Modes-and-Registers + - // MODES: https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/ARM-processor-modes?lang=en + - // EXCEPTION HANDLING: https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/Exception-handling?lang=en + - // MODE REGISTERS: https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/ARM-core-registers?lang=en ## Todo -- Implement Lock for accessing thread information -- Fix mutex with scheduler -- Implement handlers + - Implement Lock for accessing thread information + - Fix mutex with scheduler + - Implement handlers ## SVC Calls -- Sysinfo -- Reboot? -- Mutex Create -- Mutex Lock -- Mutex Release -- Schedule -- Yield -- Uart Write Buffer Add (Add reoccuring task to flush write buffer - RotatingBuffer) + - Sysinfo + - Reboot? + - Mutex Create + - Mutex Lock + - Mutex Release + - Schedule + - Yield + - Fork + - Uart Write Buffer Add (Add reoccuring task to flush write buffer - RotatingBuffer) Note: SYS and USER share registers but differ in privilege # Modes -- From https://developer.arm.com/documentation/den0013/d/ARM-Processor-Modes-and-Registers -- User: 10000 PL0 -- FIQ : 10001 PL1 -- IRQ : 10010 PL1 -- SVC : 10011 PL1 -- ABT : 10111 PL1 -- UND : 11011 PL1 -- SYS : 11111 PL1 + - From https://developer.arm.com/documentation/den0013/d/ARM-Processor-Modes-and-Registers + - User: 10000 PL0 + - FIQ : 10001 PL1 + - IRQ : 10010 PL1 + - SVC : 10011 PL1 + - ABT : 10111 PL1 + - UND : 11011 PL1 + - SYS : 11111 PL1 # Registers -- From https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/ARM-core-registers?lang=en -- User: r0-12_usr,sp_usr,lr_usr,CPSR -- FIQ: r8-r12_fiq,sp_fiq,lr_fiq,SPSR_fiq -- IRQ: sp_irq,lr_irq,SPSR_irq -- SVC: sp_svc,lr_svc,SPSR_svc -- ABT: sp_abt,lr_abt,SPSR_abt -- UND: sp_und,lr_und,SPSR_und -- SYS: Same as user + - From https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/ARM-core-registers?lang=en + - User: r0-12_usr,sp_usr,lr_usr,CPSR + - FIQ: r8-r12_fiq,sp_fiq,lr_fiq,SPSR_fiq + - IRQ: sp_irq,lr_irq,SPSR_irq + - SVC: sp_svc,lr_svc,SPSR_svc + - ABT: sp_abt,lr_abt,SPSR_abt + - UND: sp_und,lr_und,SPSR_und + - SYS: Same as user # Program Status Registers -- https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/Program-Status-Registers--PSRs-?lang=en#CIHJBHJA + - https://developer.arm.com/documentation/ddi0406/c/System-Level-Architecture/The-System-Level-Programmers--Model/ARM-processor-modes-and-ARM-core-registers/Program-Status-Registers--PSRs-?lang=en#CIHJBHJA @@ -106,6 +106,7 @@ undefined: // subs pc, lr, #4 ldmfd sp!, {r0-r12,pc}^ svc: + cpsid f stmfd sp!, {r0-r12,lr} ldr r0, [lr, #-4] bic r0, #0xFF000000 |