JPH03265053A - Bus error processing system - Google Patents

Bus error processing system

Info

Publication number
JPH03265053A
JPH03265053A JP2065368A JP6536890A JPH03265053A JP H03265053 A JPH03265053 A JP H03265053A JP 2065368 A JP2065368 A JP 2065368A JP 6536890 A JP6536890 A JP 6536890A JP H03265053 A JPH03265053 A JP H03265053A
Authority
JP
Japan
Prior art keywords
rom
bus error
ram
processing
start address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2065368A
Other languages
Japanese (ja)
Inventor
Koichi Taneda
種田 幸一
Shinichi Ishikawa
伸一 石川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP2065368A priority Critical patent/JPH03265053A/en
Publication of JPH03265053A publication Critical patent/JPH03265053A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce the complication of a bus error processing caused by a software by providing a ROM/RAM bys error processing routine and a ROM subroutine means. CONSTITUTION:When a bus error exception is generated, a CPU 1 refers to a ROM vector table 21 of an address pointed out by a vector base register (VBR) 11, and fetches a bus error exception vector contained therein. An address of the bus error exception vector in the table 21 points out the head address of a ROM bus error processing routine 22, and the CPU 1 executes this bus error processing. The contents of the VBR 11 are rewritten so as to point out the address of a ROM vector table 31 by a ROM/RAM bus error routine processing switching means 33. In this case, when the bus error exception is generated, the CPU 1 refers to the RAM vector table 31 of the address pointed out by the VBR 11, and fetches its bus error exception vector. The CPU 1 executes this error processing.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、CPUと、I’tOMと、RAMとを備えた
情報処理装置に関し、特にバスエラー処理方式に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device including a CPU, an I'tOM, and a RAM, and particularly relates to a bus error processing method.

〔従来の技術〕[Conventional technology]

従来、この種のバスエラー処理は、ROM内に持つこと
はカ<、たとえ持ったへしてもごく簡卑なもので、オペ
レージ勤ンシステム(以下、O8と略す)に制御が疲り
た後は、二度と使われることがないものである場合がほ
とんどであった。
Conventionally, this type of bus error processing has not been implemented in the ROM, and even if it were, it was very simple, and the control was tedious for the operating system (hereinafter referred to as O8). In most cases, it was never used again.

また、O8はバスエラーの種類に応じて、システムエラ
ー処理、タスクエラー処理などバスエラーからの回復を
きめ細かに行う必要があるため、RAM内KO8自信の
パスエラー処理を持つのが一般的であシ、その処理はO
8内で閉じられている場合がほとんどであった。
Additionally, since the O8 needs to perform detailed recovery from bus errors such as system error processing and task error processing depending on the type of bus error, it is common for the KO8 to have its own path error processing in RAM. Shi, that process is O
In most cases, it was closed within 8.

さらに、診断プログラムなどのバスエラーからの回復が
それほど重要でないソフトウェアにおいても、その診断
プログラム自身内に自分自身内の前記バスエラー例外が
発生したときに呼び出すことによってそのバスエ2−の
要因を解析し、その要因を刈取ると共にその要因の種類
をコード化して返すROMサブルーチン手段と、処理開
始アドレスが前記ROMベクターテーブルに登録されて
おり、かつ前記ROMサブルーチン手段を呼び出すこと
によシ、エラー要因の刈取りを行うROMバスエラー処
理ルーチン手段とを備え、前記RAM内に、ソフトウェ
アの必要に応じて、例外処理の開始アドレスを示すテー
ブルを持ったRAMベクターテーブル手段と、処理開始
アドレスが、前記RAMベクターテーブルに登録されて
おり、かつ前記ROMサブルーチン手段を呼び出すこと
によシ、工2−要因の解析畳刈取シ・コード化を行5R
AMバスエラー処理ルーチン手段を具備し、ソフトウェ
アの必1!!に応じて、ソフトウェアによシ、前記VB
Rを前記ROMベクターテーブルの先頭アドレス、また
は前記RAMベクターテーブルの先頭アドレスに書き換
えることKよって、バスエラー例外発生時に、ROMバ
スエラー処理ルーチンまたはRAMバスエラー処理ルー
チンのどちらか一方のルーチンを実行するように切り替
えるROMン’RAM バスエラー処理ルーチン切り替
え手段とを含むことを%徴とする。
Furthermore, even in software such as a diagnostic program where recovery from a bus error is not so important, the cause of the bus error can be analyzed by calling the diagnostic program itself when the bus error exception occurs within itself. , a ROM subroutine means that reaps the cause and returns the type of the cause as a code, and a processing start address is registered in the ROM vector table, and by calling the ROM subroutine means, ROM bus error processing routine means for reaping; RAM vector table means having a table in the RAM indicating a start address of exception processing as required by software; By calling the ROM subroutine means, the process 2-factor analysis tatami reaping code is performed.
Equipped with AM bus error handling routine means, a must-have software! ! Depending on the software, the VB
By rewriting R to the start address of the ROM vector table or the start address of the RAM vector table, either the ROM bus error processing routine or the RAM bus error processing routine is executed when a bus error exception occurs. The ROM, RAM, and bus error handling routine switching means are included.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図であシ、1はC
PU、2はROM、3はRAM、4はバスで、’、CP
UI内K VBRI 1があシ、それはソフトウェアに
よシ書き換えられるまで、ROMベクターテーブル21
を指している。バスエラー例外が発生すると、CPUI
はVBRIIの指すアドレスのROMベクターテーブル
21を参照し、その中のバスエラー例外ベクトルを取シ
出す。ROMベクターテーブル21中のパスエラー例外
ベクトルのアドレスは、ROMバスエラー処理ルーチン
22の先頭アドレスを指してお、9、CPUIはこのバ
スエラー処理の実行を行う。
FIG. 1 is a block diagram of an embodiment of the present invention, and 1 is a block diagram of an embodiment of the present invention.
PU, 2 is ROM, 3 is RAM, 4 is bus, ', CP
If K VBRI 1 in the UI is blank, it will remain in the ROM vector table 21 until it is rewritten by software.
is pointing to. When a bus error exception occurs, the CPU
refers to the ROM vector table 21 at the address pointed to by VBRII and extracts the bus error exception vector therein. The address of the path error exception vector in the ROM vector table 21 points to the start address of the ROM bus error processing routine 22, and the CPU 9 executes this bus error processing.

ROMバスエラー処理ルーチン22は、ROMサブルー
チン23を呼び出すことによシェラ−要因の刈取ルを行
い、バスエラー処理ルーチンを終了する。
The ROM bus error processing routine 22 calls the ROM subroutine 23 to eliminate the Scheller factor, and ends the bus error processing routine.

ソフトウェアによって必要に応じて用意される、ROM
/RAMバスエラールーチン処理切夛替え手段33によ
って、VBRllの内容はRAMベクターテーブル31
のアドレスを指すように書き換えられる。この場合にバ
スエラー例外が発生すると、CPIJIはVBRllの
指すアドレスのRAMベクターテーブル31を参照し、
その中のパスエラー例外ベクトルを取ル出す。RAMベ
クターテーブル31中のパスエラー例外ベクトルのアド
レスは、RAMバスエラー処理ルーチン32の先頭アド
レスを指してお、9、CPUIはこのバスエラー処理の
実行を行う。
ROM prepared by software as needed
/RAM bus error routine processing switching means 33 converts the contents of VBRll to the RAM vector table 31.
is rewritten to point to the address of If a bus error exception occurs in this case, CPIJI refers to the RAM vector table 31 at the address pointed to by VBRll,
Extract the path error exception vector in it. The address of the path error exception vector in the RAM vector table 31 points to the start address of the RAM bus error processing routine 32, and the CPU 9 executes this bus error processing.

RAMバスエラー処理ルーチン32は、RAMサブルー
チン23を呼び出すことによシェラ−要因の解析、刈取
シ及び工2−!!因のコード化を行う。さらに、RAM
バスエ:t−処uルーチン32は、コード化されたエラ
ー要因の種類に従ってバスエラーからの回復処理を行う
The RAM bus error processing routine 32 calls the RAM subroutine 23 to analyze, reap, and process Scheller factors. ! Codify the cause. Furthermore, RAM
The bus error:t-processing routine 32 performs recovery processing from a bus error according to the type of encoded error factor.

第2図は、ROMバスエラー処理ルーチン22を示して
おfi、221はROMバスエラー処理エン)!J、2
22はROMサブルーチンのコール命令、223は例外
からの復帰命令である。ROMバスエラー処理は、割シ
込み要因の刈取シが目的なため、割シ込み要因のコード
は使用しない。
FIG. 2 shows the ROM bus error handling routine 22 (FI, 221, ROM bus error handling routine 22)! J, 2
22 is a ROM subroutine call instruction, and 223 is an exception return instruction. Since the purpose of ROM bus error processing is to extract the interrupt cause, the code of the interrupt cause is not used.

第3図d、RAMバスエ5−処理ルーチン32を示して
おj9.321はRAMバスエラー処理エントリ、32
2はROMサブルーチンのコール命令、323はバスエ
ラー回復処理ルーチン、324は例外からの復帰命令で
ある。バスエラー回復処理ルーチン323によって、ソ
フトウェアはバスエラーからの回復処理をきめ細かく行
うことができる。
FIG. 3d shows the RAM bus error processing routine 32, j9.321 is the RAM bus error processing entry, 32
2 is a ROM subroutine call instruction, 323 is a bus error recovery processing routine, and 324 is an exception return instruction. The bus error recovery processing routine 323 allows software to perform detailed recovery processing from bus errors.

第4図は、ROMサブルーチン23を示しておシ、23
1はROMサブルーチンエントリ、232ババスエラー
要因解析ルーチン、233はバスエラー要因刈取シル−
チア、234はバスエラー要因コード化ルーチン、23
5はサブルーチンからの復帰命令である。このルーチン
は、22.32から共通に呼び出される。
FIG. 4 shows the ROM subroutine 23.
1 is a ROM subroutine entry, 232 is a bus error factor analysis routine, and 233 is a bus error factor reaping sill.
Chia, 234 is a bus error factor encoding routine, 23
5 is a return instruction from the subroutine. This routine is commonly called from 22.32.

〔発明の効果〕〔Effect of the invention〕

以上説明してきたように本発明は、ROM内にソフトウ
ェアに制御を渡すまでの間に発生した例外処理の開始ア
ドレスを示すテーブルを持ったROMベクターテーブル
手段と、バスエラー例外が発生したときに呼び出すむと
Kよってバスエラーの要因を解析し、その要因を刈取る
と共にその要因の種類をコード化して返すROMサブル
ーチン手段と、処理開始アドレスが前記ROMベクター
テーブルに登録されており、かつ前記ROMサブルーチ
ン手段を呼び出すことにより、エラー要因の刈取りを行
うROMバスエラー処理ルーチン手段を具備し、RAM
内に1ソフトウエアの必要に応じて、例外処理の開始ア
ドレスを示すテーブルを持ったRAMベクターテーブル
手段と、処理開始アドレスが、前記RAMベクターテー
ブルに登録されており、かつ前記ROMサブルーチフ手
段を呼び出すことによシ、エラー要因の解析・刈取シ・
コード化を行うRAMバスエ2−処理ルーチン手段を具
備し、ソフトウェアの必要に応じて、ソフトウェアによ
り、VBRをROMベクターテーブルの先頭アドレス、
またはRAMベクターテーブルの先頭アドレスに書き換
えることによって、バスエラー例外発生時に、ROMバ
スエラー処理ルーチンまたはRA M ハスエラー処理
ルーチンのどちらか一方のルーチンを実行するように切
り替える。ROM/RAMバスエラー処理ルーチン切り
替え手段を具備することによって、ソフトウェアによシ
、バスエラーの発生後、バスエラーの要因のm類に応じ
てきめ細かなバスエラーからの回復処理を行う必要性が
あるかないかに応じて、RAM内にソフトウェア自身の
パスエラー処理ヲ持ツか否かの選択をすることができ、
たとえ、自身内にバスエラー処理を持つ必要性があった
場合においても、ROMサブルーチン手段を用いること
によシ、ハードウェアに密接に関わった工2−要因の解
析及びエラー要因の刈取シの処理を省略できるので、ソ
フトウェアによるバスエラー処理の複雑化を軽減できる
という効果がある。
As explained above, the present invention includes a ROM vector table means having a table in the ROM indicating the start address of an exception handling that occurs before passing control to software, and a ROM vector table means that is called when a bus error exception occurs. ROM subroutine means that analyzes the cause of a bus error, harvests the cause, codes the type of the cause, and returns the code; and a ROM subroutine means in which a processing start address is registered in the ROM vector table; It is equipped with a ROM bus error handling routine means that reaps the cause of the error by calling
RAM vector table means having a table indicating the start address of exception processing and the processing start address are registered in the RAM vector table and call the ROM subroutine means as required by the software. Especially when analyzing and reaping error causes.
A RAM bus 2-processing routine means for encoding is provided, and the software converts the VBR to the starting address of the ROM vector table,
Alternatively, by rewriting the start address of the RAM vector table, when a bus error exception occurs, execution of either the ROM bus error processing routine or the RAM bus error processing routine is switched. By providing a ROM/RAM bus error processing routine switching means, after a bus error occurs, it is necessary to perform detailed recovery processing from the bus error according to the cause of the bus error. Depending on whether or not the software has its own path error handling in RAM,
Even if there is a need to have internal bus error processing, the ROM subroutine means can be used to process processes that are closely related to the hardware. This has the effect of reducing the complexity of bus error processing by software.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例のブロック図、第2図はRO
M0MパスエラMルーチンの70チヤート、第3図はR
AMバスエラー処理ルーチンの70チヤート、第4図は
ROMサブルーチンのフローチャートである。 1・・−・−・中央処理装置(CPU)、2・・・・・
・不揮発性記憶部(ROM)、3・・・・・・読み書き
可能記憶部(RAM’)、4・・・・・・バス、11°
°′・・・ベクトルペースレジスタ(VBR)、21・
・・・・・ROMベクターテーブル、22・・・・・・
ROMバスエラー処理ルーチン、23・・・・・・RO
Mサブルーチン、31・・・・・・RAMへll−チー
7”ル、32・・・・・・RAMバスエラー処理ルーチ
ン、33・・・・・・ROM/RAMパスエラー処理ル
ーテ/切り替え、221・・・・・・ROM ハ、x、
 エラー処理工/ト1ハ 222−−−−−・ROMサ
ブルーチンのコール命令、223・・・・・・例外から
の復帰命令、231・・・・・・ROMサブルーチンエ
ントリ、232・・・・・・バスエ”j−要因N析ルー
チン、233・旧・・バスr−2−要因刈取リルーチン
、234・・・・・・パスエラー要因コード化ルーチン
、235・・・・・・サブルーチンからの復帰命令、3
21・・・・・・RAMバスエラー処理エントリ、32
2・・・・・・ROMサブルーチンのコール命令、32
3・・・・・・パスエラー回復処理ルーチン、324・
・・・・・例外からの復帰命令。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
M0M pass error M routine chart 70, Figure 3 is R
70 of the AM bus error handling routine, FIG. 4 is a flowchart of the ROM subroutine. 1...--Central processing unit (CPU), 2...
・Non-volatile memory (ROM), 3...Readable/readable memory (RAM'), 4...Bus, 11°
°'...Vector pace register (VBR), 21.
...ROM vector table, 22...
ROM bus error processing routine, 23...RO
M subroutine, 31... To RAM, 32... RAM bus error processing routine, 33... ROM/RAM path error processing route/switching, 221 ...ROM Ha, x,
Error processing/t1c 222-----ROM subroutine call instruction, 223...Return from exception instruction, 231...ROM subroutine entry, 232...・Bus ``j'' factor N analysis routine, 233 ・Old...Bus r-2-factor reaping reroutine, 234...Path error factor coding routine, 235...Return command from subroutine ,3
21...RAM bus error processing entry, 32
2...ROM subroutine call instruction, 32
3...Path error recovery processing routine, 324.
...Return command from exception.

Claims (1)

【特許請求の範囲】[Claims] バスエラー例外が生じた際に、例外処理開始アドレスを
示すベクターテーブルの先頭アドレスを示すVBR(ベ
クトルベースレジスタ)を備えたCPU(中央処理装置
)と、ソフトウェアに制御を渡すまでの処理を格納した
ROM(不揮発性記憶部)と、読み書き可能なRAM(
記憶部)と、それらを接続するバスとを具備した情報処
理装置において、前記ROM内ソフトウェアに制御を渡
すまでの間に発生した例外処理の開始アドレスを示すテ
ーブルを持ったROMベクターテーブル手段と、前記バ
スエラー例外が発生したときに呼び出すことによってそ
のバスエラーの要因を解析し、その要因を刈取ると共に
その要因の種類をコード化して返すROMサブルーチン
手段と、処理開始アドレスが前記ROMベクターテーブ
ルに登録されており、かつ前記ROMサブルーチン手段
を呼び出すことにより、エラー要因の刈取りを行うRO
Mバスエラー処理ルーチン手段とを備え、前記RAM内
に、ソフトウェアの必要に応じて、例外処理の開始アド
レスを示すテーブルを持ったRAMベクターテーブル手
段と、処理開始アドレスが、前記RAMベクターテーブ
ルに登録されており、かつ前記ROMサブルーチン手段
を呼び出すことにより、エラー要因の解析・刈取り・コ
ード化を行うRAMバスエラー処理ルーチン手段を具備
し、ソフトウェアの必要に応じて、ソフトウェアにより
、前記VBRを前記ROMベクターテーブルの先頭アド
レス、または前記RAMベクターテーブルの先頭アドレ
スに書き換えることによって、バスエラー例外発生時に
、ROMバスエラー処理ルーチンまたはRAMバスエラ
ー処理ルーチンのどちらか一方のルーチンを実行するよ
うに切り替えるROM/RAMバスエラー処理ルーチン
切り替え手段とを含むことを特徴とするバスエラー処理
方式。
When a bus error exception occurs, the CPU (central processing unit) is equipped with a VBR (vector base register) that indicates the start address of the vector table that indicates the exception processing start address, and stores the processing up to passing control to software. ROM (non-volatile memory) and read/write RAM (
ROM vector table means having a table indicating a start address of an exception process that occurs before passing control to the software in the ROM; ROM subroutine means that is called when the bus error exception occurs to analyze the cause of the bus error, reap the cause, code the type of the cause, and return the code, and a processing start address stored in the ROM vector table. RO that is registered and performs reaping of error causes by calling the ROM subroutine means.
M bus error processing routine means, RAM vector table means having a table indicating a start address of exception processing in the RAM as required by software, and a processing start address registered in the RAM vector table. and a RAM bus error processing routine means for analyzing, reaping, and coding the cause of the error by calling the ROM subroutine means. By rewriting the start address of the vector table or the start address of the RAM vector table, the ROM/ROM can be switched to execute either the ROM bus error processing routine or the RAM bus error processing routine when a bus error exception occurs. A bus error processing method comprising: RAM bus error processing routine switching means.
JP2065368A 1990-03-14 1990-03-14 Bus error processing system Pending JPH03265053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2065368A JPH03265053A (en) 1990-03-14 1990-03-14 Bus error processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2065368A JPH03265053A (en) 1990-03-14 1990-03-14 Bus error processing system

Publications (1)

Publication Number Publication Date
JPH03265053A true JPH03265053A (en) 1991-11-26

Family

ID=13284952

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2065368A Pending JPH03265053A (en) 1990-03-14 1990-03-14 Bus error processing system

Country Status (1)

Country Link
JP (1) JPH03265053A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5397318A (en) * 1993-06-10 1995-03-14 The Procter & Gamble Company Absorbent article having a pocket cuff

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5397318A (en) * 1993-06-10 1995-03-14 The Procter & Gamble Company Absorbent article having a pocket cuff

Similar Documents

Publication Publication Date Title
EP0370274A2 (en) Personal computer/host emulation system for handling host data with personal computer application programs at personal computers
JPH03265053A (en) Bus error processing system
US6086624A (en) Simulator and simulation method in each of which simulation can be carried out at a high-speed
US8533376B1 (en) Data processing method, data processing apparatus and robot
US6772372B2 (en) System and method for monitoring unaligned memory accesses
JPS6149209A (en) Program execution system of numerical controller
KR20080044652A (en) Method for debugging by using stack of cpu
JPS6240538A (en) Data processor
JPS6232540A (en) Information processor
JPH0423102A (en) Programming device for programmable controller
JPS63163543A (en) Information processor
JPH0535499A (en) Data processing device and method
JPS61131124A (en) Conversation input processing system
JPH02113334A (en) Computer with tag
JPH02280285A (en) System for generating debugging program of data flow type calculator
JPH04310133A (en) Virtual hardware system
JPH0293947A (en) Electronic computer
JPH0259829A (en) Microcomputer
JPS63282525A (en) Correction system for execution type program file
JPS63217433A (en) Control system for execution of program
JPS5858648A (en) Pending item processing system of program
JPH0228734A (en) Farmware evaluation system
JPS61221827A (en) Information processor
JPH0619721A (en) Machine language translation optimizing system
JPH02128223A (en) Operational processor