窗口寄存器作为SPARC 结构中一个重要的概念在进行基于SPARC 结构的嵌入式实 时系统移植时,需要在任务切换函数中进行与其相关的处理。本文简单介绍了SPARC 的栈结构、寄存器窗口的相关操作,并以uC/OS 的移植为例子,简单实现了切换函数以及系统时钟中断。 关键字:寄存器窗口、SPARC、任务切换、中断 Abstract:Windows Register is an important concept in SPARC architecture CPU. When porting an RTOS to SPARC CPU, must consider the operating to Windows Registers in context switching function. This paper introduces the STACK architecture of SPARC and the operation to Windows Registers. Then gives an example of context switching function and interrupt handler based on uC/OS. Keywords: register window SPARC context switch interrupt RTOS