VxWorks下龙芯3A中断控制技术的研究
2017-07-25徐骞
徐骞



摘 要: 中断控制是嵌入式操作系统VxWorks正常运行的基础,是其具有高实时性的保障。针对VxWorks系统下中断控制驱动开发难度大、应用广等特点,首次提出了VxWorks系统中断控制驱动分层模型。基于该模型提出了VxWorks下中断控制驱动软件的设计方法,并基于该方法实现了VxWorks下国产龙芯3A处理器中断控制驱动软件的开发。最后提出一种优化龙芯3A中断控制性能的方法,大大缩短了中断响应时间,提高了系统的性能。
关键词: 中断控制; VxWorks; 龙芯3A; 驱动软件
中图分类号: TN876?34; TP311.1 文献标识码: A 文章编号: 1004?373X(2017)14?0036?04
Abstract: Interrupt control is the base of normal running of the embedded operating system VxWorks and is a safeguard of high real?time performance. A drive hierarchical model of interrupt control on VxWorks is proposed aiming at the characteristics that the drive development of interrupt control on the embedded operating system VxWorks has great difficulty and its wide application. According to this model, a design method of interrupt control drive software based on VxWorks is put forward. The interrupt control drive software of Loongson 3A have was developed successfully with the method. A method to optimize the Loongson 3A interrupt control performance is presented. It greatly shortens the interrupt response time, and improves the performance of the system.
Keywords: interrupt control; VxWorks; Loongson 3A; drive software
VxWorks操作系统是风河公司推出的一种嵌入式实时操作系统, 以其高性能、高可靠性、高实时性等特点成为实时操作系统中最具特色的系统之一。其广泛地应用在通信、军事、航空、航天等高端技术及实时性、扩展性要求极高的领域中[1]。龙芯系列处理器芯片是龙芯中科技术有限公司研发的具有自主知识产权的处理器芯片,产品包括龙芯1号、龙芯2号和龙芯3号三个系列[2]。龙芯3A处理器是龙芯3号处理器的第一款产品,主要面向高性能计算机、服务器和高端桌面应用,是一款实现64位MIPS Ⅲ指令集的高性能四核處理器芯片,片内集成了HT控制器、PCI/PCIX等接口,最高工作主频[3]可以达到1 GHz。VxWorks作为一个实时嵌入式操作系统,通常采用中断的方式来满足系统实时性的要求。因此,中断控制驱动的实现对于VxWorks操作系统的开发是至关重要的[4]。本文在研究VxWorks系统中断控制技术的基础之上,描述了VxWorks下龙芯3A中断控制驱动的设计方法和实现过程,并对其中断控制性能进行了优化。……
