project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
48 lines
1.4 KiB
ArmAsm
48 lines
1.4 KiB
ArmAsm
/*
|
|
* File : context.asm
|
|
* This file is part of RT-Thread RTOS
|
|
* COPYRIGHT (C) 2009, RT-Thread Development Team
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rt-thread.org/license/LICENSE
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2010-04-09 fify the first version
|
|
* 2010-04-19 fify rewrite rt_hw_interrupt_disable/enable fuction
|
|
* 2010-04-20 fify move peripheral ISR to bsp/interrupts.s34
|
|
*/
|
|
|
|
.section .text
|
|
|
|
.globl _rt_interrupt_from_thread
|
|
.globl _rt_interrupt_to_thread
|
|
.global _os_context_switch
|
|
.type _os_context_switch, @function
|
|
_os_context_switch:
|
|
PUSHM R0,R1,R2,R3,A0,A1,SB,FB
|
|
|
|
MOV.W _rt_interrupt_from_thread, A0
|
|
STC ISP, [A0]
|
|
MOV.W _rt_interrupt_to_thread, A0
|
|
LDC [A0], ISP
|
|
|
|
POPM R0,R1,R2,R3,A0,A1,SB,FB ; Restore registers from the new task's stack
|
|
REIT ; Return from interrup
|
|
|
|
/*
|
|
* void rt_hw_context_switch_to(rt_uint32 to);
|
|
* this fucntion is used to perform the first thread switch
|
|
*/
|
|
.global _rt_hw_context_switch_to
|
|
.type _rt_hw_context_switch_to, @function
|
|
_rt_hw_context_switch_to:
|
|
ENTER #0x0
|
|
MOV.W 0x5[FB], A0
|
|
LDC [A0], ISP
|
|
POPM R0,R1,R2,R3,A0,A1,SB,FB
|
|
REIT
|
|
|
|
.end
|