Patent US3963852A successfully refreshed from Google Patents.
Patent US5371879A successfully refreshed from Google Patents.
← Back to Patent Explorer
US5371879A Expired / Lapsed US ⏱️ 0.0 years remaining

Apparatus and method for testing of new operating systems through priviledged instruction trapping

Assignee: RPX Corp
•
Filing: 1994-04-26
•
Granted: 1994-12-06
•
Expires: 2014-04-26
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A method of implementing a privileged instruction that enables the development of new operating systems in user mode. The instruction decode logic includes a maskable interrupt generator that interrupts the processor during the processing of privileged instructions in user mode. An exception handler processes the privileged instruction interrupt and performs a function similar to the execution of the privileged instruction in privileged instruction mode. The combination of the privileged instruction interrupt and the post-interrupt exception handling enables the operating system developer to test new operating systems by laying them over the current operating system.

Inventors

  • 👤 Alan J. Schiffleger

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-10-27 06:11
CPC Classifications
G; G06; G06F; G06F9/00; G06F9/06; G06F9/44; G06F9/455; G06F9/45533

Claims Analysis

Total Claims: 7
Claim 1
Independent Claim 207 words
An apparatus for debugging a new operating system within user mode of a processor having a privileged instruction execution monitor mode wherein privileged instructions are executed and a user mode wherein a privileged instruction is typically treated as a no-operation instruction, the processor comprising an instruction execution unit which executes an instruction parcel having an opcode, the processor further comprising a current instruction parcel register, connected to the instruction execution unit, which receives the instruction parcel before passing the instruction parcel to the instruction execution unit, the apparatus comprising: processor interrupt means, connected to the current instruction parcel register and the instruction execution unit, for generating a hardware interrupt to said instruction execution unit on encountering a privileged instruction during user mode, wherein the processor interrupt means comprise an interrupt generator which generates the hardware interrupt when the instruction parcel opcode received by the current instruction parcel register is associated with a privileged instruction; and interrupt enable means connected to said processor interrupt means for disabling said hardware interrupt, wherein the interrupt enable means comprise a mode select register connected to the interrupt generator, wherein the mode select register comprises a mode select bit which operates to prevent issuance of the hardware interrupt by the interrupt generator.
Claim 2
Independent Claim 207 words
An apparatus for debugging a new operating system within user mode of a processor having a privileged instruction execution monitor mode wherein privileged instructions are executed and a user mode wherein a privileged instruction is typically treated as a no-operation instruction, the processor comprising an instruction execution unit which executes an instruction parcel having an opcode, the processor further comprising a current instruction parcel register, connected to the instruction execution unit, which receives the instruction parcel before passing the instruction parcel to the instruction execution unit, the apparatus comprising: processor interrupt means, connected to the current instruction parcel register and the instruction execution unit, for generating a hardware interrupt to said instruction execution unit on encountering a privileged instruction during user mode, wherein the processor interrupt means comprise an interrupt generator which generates the hardware interrupt when the instruction parcel opcode received by the current instruction parcel register is associated with a privileged instruction; and interrupt enable means connected to said processor interrupt means for disabling said hardware interrupt, wherein the interrupt enable means comprise a mode select register connected to the interrupt generator, wherein the mode select register comprises a mode select bit which operates to prevent issuance of the hardware interrupt by the interrupt generator.
Claim 3
Dependent Claim 26 words
The apparatus according to claim 1 wherein said interrupt enabling means further comprise means for changing the mode select bit under control of an exchange packet.
Claim 4
Independent Claim 187 words
A method of emulating an operating system having a privileged instruction within user mode of a vector processing computer having both a user mode and a privileged instruction executing monitor mode, comprising the steps of: providing a processing unit comprising an instruction execution unit, a current instruction register, an interrupt generator and a mode select register comprising a mode select bit having a first and a second logic state; providing a sequence of instructions, wherein the sequence of instructions includes a first instruction followed by a second instruction and wherein the first instruction is a privileged instruction; storing the first instruction in the current instruction register; if the mode select bit is in the first logic state: generating, from the interrupt generator to the instruction execution unit, a hardware interrupt associated with the privileged instruction; performing a packet exchange sequence to enter privileged instruction executing mode; executing, in privileged instruction mode, a series of instructions which emulate execution of the privileged instruction; and returning to user mode to fetch the second instruction; and otherwise, treating the first instruction as a NO-OP instruction and fetching the second instruction.
Claim 5
Independent Claim 187 words
A method of emulating an operating system having a privileged instruction within user mode of a vector processing computer having both a user mode and a privileged instruction executing monitor mode, comprising the steps of: providing a processing unit comprising an instruction execution unit, a current instruction register, an interrupt generator and a mode select register comprising a mode select bit having a first and a second logic state; providing a sequence of instructions, wherein the sequence of instructions includes a first instruction followed by a second instruction and wherein the first instruction is a privileged instruction; storing the first instruction in the current instruction register; if the mode select bit is in the first logic state: generating, from the interrupt generator to the instruction execution unit, a hardware interrupt associated with the privileged instruction; performing a packet exchange sequence to enter privileged instruction executing mode; executing, in privileged instruction mode, a series of instructions which emulate execution of the privileged instruction; and returning to user mode to fetch the second instruction; and otherwise, treating the first instruction as a NO-OP instruction and fetching the second instruction.
Claim 6
Independent Claim 130 words
A method of testing program code for a new operating system in a computer having both a user mode and a privileged instruction executing monitor mode, wherein the program code includes a privileged instruction, the method comprising the steps of: providing a hardware interrupt circuit for generating a hardware interrupt when the privileged instruction is detected while the computer is in said user mode; enabling the hardware interrupt circuit; placing the computer in user mode; loading the new operating system and executing the new operating system program code within the user mode; trapping the privileged instruction, wherein the step of trapping the privileged instruction comprises: detecting the privileged instruction; and generating the hardware interrupt when the privileged instruction is detected; switching to the monitor mode; and emulating the privileged instruction.
Claim 7
Independent Claim 130 words
A method of testing program code for a new operating system in a computer having both a user mode and a privileged instruction executing monitor mode, wherein the program code includes a privileged instruction, the method comprising the steps of: providing a hardware interrupt circuit for generating a hardware interrupt when the privileged instruction is detected while the computer is in said user mode; enabling the hardware interrupt circuit; placing the computer in user mode; loading the new operating system and executing the new operating system program code within the user mode; trapping the privileged instruction, wherein the step of trapping the privileged instruction comprises: detecting the privileged instruction; and generating the hardware interrupt when the privileged instruction is detected; switching to the monitor mode; and emulating the privileged instruction.

References Cited (Backward Citations)

US4128880A Cited
US4253145A Cited
US4636942A Cited
US4661900A Cited
US4812967A Cited
US4745545A Cited
US5038281A Cited
EP0301707A2 Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 1997-12-05 1998-06-06 1998-12-06 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2001-12-05 2002-06-06 2002-12-06 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2005-12-05 2006-06-06 2006-12-06 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag