The SPARC architecture real-time kernel porting
- Author
- FengLei
- Advisor
- DengYunKai
- School
- Institute of Electronics
- Major
- Communication and Information System
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 354
- Citations
- 1
Abstract
SPARC is a CPU instruction set architecture(ISA),which was designed as a target for optimizing compilers and easily pipelined hardware implementations.SPARC implementations provide exceptionally high execution rates and short time-to-market development schedules.SPARC,formulated at Sun Microsystems in 1987,is based on the RISCI&II designs engineered at the University of California at Berkeley from 1980 through 1982.The SPARC "register window" architecture,pioneered in UC Berkeley designs allows for straightforward, high-performance compilers and a significant reduction in memory load/store instruction over other RISCs,particularly for large application programs.There are many advantages to use RTOS in developing and embed software.First,RTOS adopts multi-tasks mode,instead of single-task mode we used before,so that the software can be more reliable.Second,the programmer can call lots of OS services,Hke semaphore,mailbox,and so on,which are provided by RTOS .Therefor the developer can focus on how to implement the application software.It’s not necessary to know internal kernel of the RTOS.The use of a RTOS simplifies the design process by splitting the application code into short time.Third,it can meet the real-time requirement of the system.With a preemptive RTOS,all time-critical events are handled as quickly and as efficiently as possible.The paper consists of six chapters.Chapter 1 give a summary of development of RTOS and several different kinds of RTOS kernel such as RTEMS,uC/OS-II and eCos.Chapter 2 introduce the basic theory like muti-task,dispater in uC/OS-IIand some fundatmental concepts of embed system.SPARC architecture and register-window concepts are discussed in chapter 3 as well as the instruction sets used in TSC695.Chapter4 give a particular explaination on the porting of uC/OS-II to SPARC architecture,there implements several basic functions such as Highready,OSCtxSw and OSIntSw.In chapter 5,the interrupt of MIL-STD-1553B and initialization of BU-61580 are provided to achieve the space-borne SAR control center system.Finally,a summary of the whole paper is given in chapter6.
Table of contents
Research statement
instructions on the use rights of the dissertation 2-3
Summary 3-4
Abstract 4-10 the
chapter introduction 10-18
1.1 Introduction to embedded systems 10-11
1.2 embedded system characteristics and structure 11-13
1.3 RTOS Introduction 13-16
1.3.1 RTOS development and status the
common RTOS 1.3.2 several 13-14 14 -16
1.3.3 RTOS future 16
1.4 the articles structure of 16-18
concept of real-time systems 18-32 < br /> 2.1 RTOS kernel 18
2.2 RTOS task management the 18-22 2.2.1 task definitions multitasking
18-19
2.2.2 The status of the task the 19-20
the 2.2.3 context of the task and task switching
2.2.4 Real-time task scheduling 20-22 < br /> 2.3 task priority inversion the Priority Inheritance 22-23
2.3.1 the priority 23
2.3.2 Sticky 23 <br / > scheduling algorithm 2.4 on uC/OS- Ⅱ 23-27
2.5 communication management the 27-29 2.5.1 semaphore (Semaphores)
27-28
2.5.2 event (Event) 28-29
2.5.3 mailboxes, (Mailbox) queue (Message Queue) 29
2.6 interrupt (Interrupt) 29-32
2.6.1 interrupt nesting
2.6.2 interrupted the delay time
2.6.3 interrupted the response time 30-31
2.6.4 interrupt recovery time 31-32
Chapter RISC instruction set and register window nbsp 32-44
3.1 RISC instruction set; 32-33
3.2 SPARC assembly instructions the 33-36
3.3 Registers window the command RESTORE command 36-40
3.3.1 SAVE 37
3.3.2 special register% PSR,% the WIM 37-38
3.3.3 register window state operating 38-40
3.3.4 window reuse program calls 40
3.4 stack frame with TRAP tables the 3.4.1 stack frame 40-42
40-41
3.4. 2 TRAP table 41-42
3.5 data types 42-44
Chapter uC/OS- Ⅱ transplant 44-63
4.1 development platform 44-46
4.1.1 hardware platforms 44
4.1.2 debugger 44-45
4.1.3 cross compiler 45-46
4.2 OS_CPU.h with SPARC.h the 46-50 4.2.1 data types
46
4.2.2 CPU stack frame defined 46-47
4.2.3 CPU registers to access the macro 47-48
4.2.4 critical function the 48-49
4.2.5 Big_Endian, with Little_Endian conversion 49-50
4.3 OS_CPU.c 50-52
4.4 OS_CPU ASM.S 52-57
4.4.1 OSStartHighRdy ( ) 52-53
4.4.2 OSCtxSw () 53-54
4.4.3 OSIntCtxSw () 54-56
4.4.4 OSTicklSR () 56-57
4.5 system initialization and idle function 57-61
4.5.1 TSC695, initialization 57-59
the 4.5.2 uC/OS- Ⅱ system initialization OSInital of () 59-60
4.5.3 idle task initialization nbsp the; 60-61
4.6 kernel transplant test 61-63
Chapter 1553 interrupt communication the 63-75
5.1 MIL-STD-1553 communication bus 63-65
5.1.1 About 1553B bus 63
5.1.2 1553B bus advantages the 63-64 5.1.3 1553B protocol
64
5.1.4 1553B bus system BU-61580 achieve the 64-65
5.2 BU-61580 bus controller 65-68
5.2.1 RT (REMOTE TERMINAL) Mode 65
5.2.2 RT memory structures 65-66
5.2.3 RT memory management 66-67
5.2.4 Single news ways of working 67-68
5.3 BU-61580 initialization 68-70
5.3.1 command the invalid table validation 68-69
5.3.2 lookup table sub-address corresponding data block to initialize the pointer 69-70
5.4 SPARC interrupt stack structure and interrupt service routines are found; 70-74
5.4.1 SPARC the interrupt stack structure 70 -71
5.4.2 interrupt service routine 71-73
5.4.3 1553B bus interrupt handling routine 73-74
5.5 interrupt test 74-75
Chapter VI summarizes to References 75-76
76-77
Acknowledgements 77-78 Master of
studying the papers completed during 78
Related dissertations
- The Real-time Control of CNC System Based on Windows CE
- Research and Application of Virtualization for Embedded Systems Based on ARM TrustZone
- The Research on the Small Multi-rotorcraft Based on Embeded Contorl System
- Design and Implementation of Communication Module in High-performance Embedded NC System
- Design and Implementation of Embedded Intelligent Control Platform for Construction Machinery
- The Design of MIS Real-Time Control System
- The Interrupt Mechanism of Real-time Operating System on ARM
- Research on Fpga-based Hardware Mutex Technology of Real-Time Operating System
- Research on embedded SPACE operating system
- The Design and Implementation of Embedded Database Technology Based on Rtems
- Development and Application of the Embedded Real-time Operating System on the Single-chip
- Designing and Implementing An8-bit OSEK/VDX-based RTOS and Corresponding Configuration Tool
- Design and implementation of S3C44B0 platform based on uCos- Ⅱ
- Research on Real-Time Performance of Linux Kernel and Network
- Design and Implementation of an Automotive Embedded Real-time Operating System Kernel
- Research and an Implemention of the Iterrupt Mechanism of X86Family CPUs
- Adaptive Interrupt-free System in High Performance I/O Virtualization
- Epon Network System OLT Lord Card System Design
- Design of HINOC Verification Platform Based on PXA270Platform and Embedded Linux System
- Desian and Implementation of Smart-OSEK OS Oriented to Micro-satellite