• 検索結果がありません。

2 Context switching between register-sets

N/A
N/A
Protected

Academic year: 2021

シェア "2 Context switching between register-sets"

Copied!
4
0
0

読み込み中.... (全文を見る)

全文

(1)

Japan Advanced Institute of Science and Technology

JAIST Repository

https://dspace.jaist.ac.jp/

Title 組み込みRTOSでのレジスタセット間高速コンテキ

スト切り替えに関する研究

Author(s) 荻野, 雅

Citation

Issue Date 2004‑03

Type Thesis or Dissertation Text version author

URL http://hdl.handle.net/10119/1802 Rights

Description Supervisor:田中 清史, 情報科学研究科, 修士

(2)

A Study of Fast Context Switching between Register-Sets, at Embeded RTOS

Tadashi Ogino (110027) School of Information Science,

Japan Advanced Institute of Science and Technology February 13, 2003

Keywords: Embeded, Real Time, Real Time OS, Context Switch.

Abstract

Nowadays, Real Time OS is applied at systems which need fast processing, but at giga-bit communication system, the over-head which is context switching from tenµto µ seconds wasted, causes serious problems. It is made from cache miss by memory accessed when task context moving. We propose two approaches, one is Context switching between register-sets, another is Narrow down registers user task using, on CPU with several register-sets, evaluate by simulation.

1 Background and purpose

Now, the overhead of context switching in RTOS, from tenµs toµs seconds needed. It is allowed at mili-seconds deadline user task, at µ seconds deadline task, makes tasks deadline-overed possiblity. (example : The real- time system at giga-bit communication system, make one packet proceccing in µ seconds. So µ seconds overhead makes possible deadline overed, a packet is losted.)

We focus memory accessing at context switching made overheads, for fast context switching, propose two methods below and evaluate them.

Context switching between register-sets

Narrow down registers user task using

Copyright c2004 by Tadashi Ogino

1

(3)

2 Context switching between register-sets

To reduce data-cache miss at context sitching, context swithing should be terminated in CPU. So we choose Casablanca[1], with 8 register-sets and data moving instruction between register-sets, register-set number 2 to 6 are avairable Context saved register-set, make it realized.

It makes improved followings:

1. Fasten user task context switching 2. Goodness of data chache usage

3 Narrow down registers user task using

Formerly we have moved whole a register-set by context switching. It is insured task context against context swithcing, but needless unused register data moving. So we make it realized by added an infomation Register usages in user task.

We change context saved register-sets with it. We manage them as frames composed 16 registers. Each frames are managed by ”frame management tables” on main memory, it is writentask-id when frame is used, else witten 0.

It makes improved followings:

1. Much contexts available in context register-sets 2. Reduce instructons at context swithcing

3. More goodness of data chache usage

4 Conclusion

We evaluated proposed and historical methods on simulation, improved followings:

1. Reduce memory accessing at context swithcing 2. Reduce data-cache missing as it

2

(4)

3. Reduce deadline-overed tasks 4. Shoten user task response

References

[1] Kiyofumi Tanaka, Takashi Matsumoto: ”Casablanca: A Real-Time RISC Core for Embedded Systems”, International Conference on Ad- vances in Infrastructure for Electronic Business, Science, and Education on the Internet, 2001, CD-ROM.

3

参照

関連したドキュメント

We related the property of a poset to be bqo to the bqo of various posets associated to a given poset, in particular the poset of the maximal antichains under the domination

Since congruence classes satisfy the condition in Theorem 4 and Algorithm 2 is just a special case of Algorithm 1, we know that Algorithm 2 terminates after a finite of steps and

The ALERT interrupt latch is not reset by reading the status register but is reset when the ALERT output is serviced by the master reading the device address, provided the

With hysteresis not enabled (see ALS_CONFIG register), the ALS_TH registers set the upper and lower interrupt thresholds of the ambient light detection window. Interrupt

The higher byte contents of this register can be stored to nonvolatile memory using the STORE_USER_ALL command.

With hysteresis not enabled (see ALS_CONFIG register), the ALS_TH registers set the upper and lower interrupt thresholds of the ambient light detection window. Interrupt

A WRITE Operation Where DATA from the Master is Written in SPI Register with Address 2 Followed by a READ Back Operation to Confirm a Correct WRITE Operation. Registers are updated

The NEW DATA is written into the corresponding internal register at the rising edge of CS Registers are updated with the internal status at the rising. edge of the internal