# US 2013/0159661 A1 · Hardware monitor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0159661 A1
- Document ID: US20130159661A1
- Status: Published application
- Kind: A1
- Application number: 13/705,315
- Filed: 2012-12-05
- Published: 2013-06-20
- Earliest claimed: 2011-12-16
- Assignees: STMicroelectronics (R&D) Ltd.
- Inventors: Mark Trimmer; Paul Elliott
- Web page: https://patentgrep.com/patent/US20130159661A1

## CPC

- G06F 12/1458: {by checking the subject access rights}
- G06F 9/46: Multiprogramming arrangements
- G06F 11/3027: {where the computing system component is a bus}
- G06F 12/0223: {User address space allocation, e.g. contiguous or non contiguous base addressing}
- G06F 12/1441: {for a range}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A monitor includes a register configured to store at least two contexts and a context change value. A context selector is configured to select at least one of the two contexts for context monitoring. The selection is made dependent on whether the context change value matches a first part of a memory access address.

## Claims

### Claim 1

A monitor, comprising:
a register configured to store at least two contexts and a context change value; and
a context selector configured to select at least one of the two contexts for context monitoring dependent on determining that the context change value matches a first part of a memory access address.

### Claim 2 (depends on 1)

The monitor as claimed in claim 1, wherein each of the at least two contexts is associated with an identifier value; and wherein the context selector is configured to select the at least one of the two contexts for context monitoring dependent on determining that a second part of the memory access address matches a context associated identifier value.

### Claim 3 (depends on 1)

The monitor as claimed in claim 1, wherein each context comprises at least one of: an instruction region; a data read region; and a data write region.

### Claim 4 (depends on 1)

The monitor as claimed in claim 1, further configured to receive a data access memory address, wherein the data access memory address is the memory access address.

### Claim 5 (depends on 1)

The monitor as claimed in claim 1, further configured to receive a supervisor mode indicator signal indicating a CPU is operating in a supervisor mode.

### Claim 6 (depends on 1)

The monitor as claimed in claim 1, further comprising an address monitor configured to receive a memory access address and compare the memory access address value against the selected at least one of the two contexts.

### Claim 7 (depends on 6)

The monitor as claimed in claim 6, wherein the address monitor is configured to generate a system interrupt when the memory access address value is outside the selected at least one of the two contexts.

### Claim 8 (depends on 1)

The monitor as claimed in claim 1, further configured to receive the at least two contexts and the context change value.

### Claim 9

A processor module comprising:
a central processing unit;
a memory coupled to the central processing unit; and
a monitor configured to receive memory access addresses from the central processing unit and comprising:
a register configured to store at least two contexts and a context change value; and
a context selector configured to select at least one of the two contexts for context monitoring dependent on determining that the context change value matches a first part of the memory access address.

### Claim 10 (depends on 9)

The processor module as claimed in claim 9, further comprising a security block configured to output the at least two contexts and the context change value to the monitor.

### Claim 11

A monitor, comprising:
a storage device configured to store at least two contexts and a context change value; and
a selection circuit configured to select at least one of the two contexts for context monitoring if the context change value matches a first part of a memory access address.

### Claim 12 (depends on 11)

The monitor as claimed in claim 11, wherein each of the at least two contexts is associated with an identifier value; and wherein the selection circuit is further configured to select the at least one of the two contexts for context monitoring if a second part of the memory access address matches a context associated identifier value.

### Claim 13 (depends on 11)

The monitor as claimed in claim 11, wherein each context comprises at least one of: an instruction region; a data read region; and a data write region.

### Claim 14 (depends on 11)

The monitor as claimed in claim 11, further comprising an input configured to receive a data access memory address, wherein the data access memory address is the memory access address.

### Claim 15 (depends on 11)

The monitor as claimed in claim 11, further comprising an input configured to receive a supervisor mode indicator signal indicating a CPU is operating in a supervisor mode.

### Claim 16 (depends on 11)

The monitor as claimed in claim 11, further comprising:
an input configured to receive a memory access address; and
a comparator circuit configured to compare the memory access address value against the selected at least one of the two contexts.

### Claim 17 (depends on 16)

The monitor as claimed in claim 16, further comprising an interrupt output configured to generate a system interrupt when the memory access address value is outside the selected at least one of the two contexts.

### Claim 18 (depends on 11)

The monitor as claimed in claim 11, further comprising an input configured to receive the at least two contexts and the context change value.

### Claim 19

A processor module comprising:
a processing unit configured to operate on instructions and process data;
a memory configured to store instructions and data; and
a monitor comprising:
a storage device configured to store at least two contexts and a context change value; and
a selection circuit configured to select at least one of the two contexts for context monitoring if the context change value matches a first part of a memory access address.

### Claim 20 (depends on 19)

The processor module as claimed in claim 19, further comprising an output configured to output the at least two contexts and the context change value to the monitor.

### Claim 21

A method for monitoring memory accesses, comprising:
storing at least two contexts and a context change value;
determining whether the context change value matches a first part of a memory access address; and
if so, selecting at least one of the two contexts for context monitoring.

### Claim 22 (depends on 21)

The method as claimed in claim 21, wherein each of the at least two contexts are associated with an identifier value; and wherein selecting further comprises:
determining whether a second part of the memory access address matches a context associated identifier value; and
if so, selecting the at least one of the two contexts for context monitoring dependent on.

### Claim 23 (depends on 21)

The method as claimed in claim 21, wherein each context comprises at least one of: an instruction region; a data read region; and a data write region.

### Claim 24 (depends on 21)

The method as claimed in claim 21, further comprising receiving a data access memory address, wherein the data access memory address is the memory access address.

### Claim 25 (depends on 21)

The method as claimed in claim 21, further comprising receiving a supervisor mode indicator signal indicating a CPU is operating in a supervisor mode.

### Claim 26 (depends on 21)

The method as claimed in claim 21, further comprising:
receiving a memory access address; and
comparing the memory access address value against the selected at least one of the two contexts.

### Claim 27 (depends on 26)

The method as claimed in claim 26, further comprising generating a system interrupt when the memory access address value is outside the selected at least one of the two contexts.

### Claim 28 (depends on 21)

The method as claimed in claim 21, further comprising receiving the at least two contexts and the context change value.

### Claim 29

A processor-readable medium encoded with instructions that, when executed by a processor, perform the following operations:
storing at least two contexts and a context change value;
determining whether the context change value matches a first part of a memory access address; and
if so, selecting at least one of the two contexts for context monitoring.

### Claim 30

Apparatus comprising at least one processor and at least one memory including computer code for one or more programs, the at least one memory and the computer code configured to operate with the at least one processor to cause the apparatus to at least perform a method comprising the steps of:
storing at least two contexts and a context change value;
determining whether the context change value matches a first part of a memory access address; and
if so, selecting at least one of the two contexts for context monitoring.

### Claim 31

A monitor, comprising:
a register configured to store at least two contexts and a context change value;
an input configured to receive a processor data write access address and an access mode indicator; and
a context selector configured to select at least one of the two contexts for context monitoring when the context change value matches a first part of a processor data write access address and when a second part of the processor data write access address matches a context change value and when the access mode indicator indicates a processor is in a supervisor mode.

### Claim 32

A method, comprising:
storing at least two contexts and a context change value;
receiving a processor data write access address and an access mode indicator;
determining a first part of the data write access address matches the context change value;
determining the access mode indicator indicates the processor is in a supervisor mode; and
changing the context to a context associated with a second part of the data write access address value.

### Claim 33

A monitor, comprising:
a memory configured to store at least two contexts and a context change value;
an input configured to receive a processor data write access address and an access mode indicator;
means for determining a first part of the data write access address matches the context change value;
means for determining the access mode indicator indicates the processor is in a supervisor mode; and
means for changing the context to a context associated with a second part of the data write access address value.
