# US 2008/0301369 A1 · Processing of self-modifying code in multi-address-space and multi-processor systems

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

- Number: US 2008/0301369 A1
- Document ID: US20080301369A1
- Status: Published application
- Kind: A1
- Application number: 12/113,131
- Filed: 2008-04-30
- Published: 2008-12-04
- Earliest claimed: 2004-10-19
- Assignees: Platform Solutions Incorporated
- Inventors: Gary A. Woffinden; Paul T. Leisy; Ronald N. Hilton
- Web page: https://patentgrep.com/patent/US20080301369A1

## CPC

- G06F 12/0815: Cache consistency protocols
- G06F 9/3812: {with instruction modification, e.g. store into instruction stream}
- G06F 9/3885: {using a plurality of independent parallel functional units}
- G06F 9/3891: {organised in groups of units sharing resources, e.g. clusters}
- G06F 12/1054: {the data cache being concurrently physically addressed}
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and system of storing to an instruction stream with a multiprocessor or multiple-address-space system is disclosed. A central processing unit may cache instructions in a cache from a page of primary code stored in a memory storage unit. The central processing unit may execute cached instructions from the cache until a serialization operation is executed. The central processing unit may check in a message queue for a notification message indicating potential storing to the page. If the notification message is present in the message queue, cached instructions from the page are invalidated.

## Claims

### Claim 1

In a computer system, a method comprising:
caching instructions in a first cache from a first page of primary code stored in a memory storage unit;
executing cached instructions from the first cache using a first central processing unit until a serialization operation is executed;
checking in a first message queue for a first notification message indicating potential storing to the first page; and
if the first notification message is present in the first message queue, invalidating cached instructions from the first page.

### Claim 2 (depends on 1)

The method of claim 1, further comprising receiving the first notification message in the first message queue from a second central processing unit.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
sending a request message to the second central processing unit to complete storage to the first page and reset write permission; and
receiving a second notification message from the second central processing unit indicating completion of storage to the first page and resetting of write permission.

### Claim 4 (depends on 1)

The method of claim 1, further comprising updating a first entry of an absolute page storage map to reflect that the first central processing unit is caching data from the first page.

### Claim 5 (depends on 1)

The method of claim 1, further comprising translating primary code in into cached instructions.

### Claim 6

In a computer system, a method comprising:
storing code with a first central processing unit to a first page;
checking a first entry of an absolute page storage map to determine if a second central processing unit is caching instructions from the first page; and
sending a first notification message to the second central processing unit indicating storing to the first page.

### Claim 7 (depends on 6)

The method of claim 6, further comprising purging a first translation lookaside buffer associated with the first central processing unit if the absolute page storage map indicates a synonym of the first page is present.

### Claim 8 (depends on 6)

The method of claim 6, further comprising:
receiving a request message from the second central processing unit to complete storage to the first page and reset write permission;
completing storage to the first page;
resetting write permission; and
sending a second notification message to the second central processing unit.

### Claim 9 (depends on 8)

The method of claim 8, further comprising resetting write permission by resetting a dirty bit associated with the first page in a first translation lookaside buffer associated with the first central processing unit.

### Claim 10

A set of instructions residing in a storage medium, said set of instructions capable of being executed by a storage controller to implement a method for processing data, the method comprising:
caching instructions in a first cache from a first page of primary code stored in a memory storage unit;
executing cached instructions from the first cache using a first central processing unit until a serialization operation is executed;
checking in a first message queue for a first notification message indicating potential storing to the first page; and
if the first notification message is present in the first message queue, invalidating cached instructions from the first page.

### Claim 11 (depends on 10)

The set of instructions of claim 10, further comprising receiving the first notification message in the first message queue from a second central processing unit.

### Claim 12 (depends on 11)

The set of instructions of claim 11, further comprising:
sending a request message to the second central processing unit to complete storage to the first page and reset write permission; and
receiving a second notification message from the second central processing unit indicating completion of storage to the first page and resetting of write permission.

### Claim 13 (depends on 10)

The set of instructions of claim 10, further comprising updating a first entry of an absolute page storage map to reflect that the first central processing unit is caching data from the first page.

### Claim 14 (depends on 10)

The set of instructions of claim 10, further comprising translating primary code in into cached instructions.

### Claim 15

A set of instructions residing in a storage medium, said set of instructions capable of being executed by a storage controller to implement a method for processing data, the method comprising:
storing code with a first central processing unit to a first page;
checking a first entry of an absolute page storage map to determine if a second central processing unit is caching instructions from the first page; and
sending a first notification message to the second central processing unit indicating storing to the first page.

### Claim 16 (depends on 15)

The set of instructions of claim 15, further comprising purging a first translation lookaside buffer associated with the first central processing unit if the absolute page storage map indicates a synonym of the first page is present.

### Claim 17 (depends on 15)

The set of instructions of claim 15, further comprising:
receiving a request message from the second central processing unit to complete storage to the first page and reset write permission;
completing storage to the first page;
resetting write permission; and
sending a second notification message to the second central processing unit.

### Claim 18 (depends on 17)

The set of instructions of claim 17, further comprising resetting write permission by resetting a dirty bit associated with the first page in a first translation lookaside buffer associated with the first central processing unit.

### Claim 19

A computer system comprising:
a memory unit that stores a first page of primary code
a first central processing unit that reads caching instructions in a first cache from the first page and checks in a first message queue for a first notification message indicating potential storing to the first page; and
a second central processing unit that stores code to the first page and sends the first notification message to the first central processing unit.

### Claim 20 (depends on 19)

The computer system of claim 19, wherein the first message queue only receives notification messages indicating storing.

### Claim 21 (depends on 19)

The computer system of claim 19, wherein the first central processing unit sends a request message to the second central processing unit to complete storage to the first page and reset write permission and the second central processing unit sends a second notification message from the second central processing unit indicating completion of storage to the first page and resetting of write permission.

### Claim 22 (depends on 21)

The computer system of claim 21, wherein the second notification message is received in a second message queue.

### Claim 23 (depends on 19)

The computer system of claim 19, further comprising an absolute page storage map that stores page entries that reflect if a first page is being read from or written to.

### Claim 24 (depends on 19)

The computer system of claim 19, wherein a first translation lookaside buffer associated with the first central processing unit and a second translation lookaside buffer associated with the second central processing unit are purged if the absolute page storage map indicates a synonym of the first page is present.

### Claim 25

In a computer system, a method comprising:
mapping in a first translation lookaside buffer entry a first virtual address to an absolute address of a first page stored in a memory storage unit;
mapping in an absolute page storage map entry the absolute address with the first virtual address;
executing cached instructions in a first cache from a first page using a first central processing unit;
mapping in a second translation lookaside buffer entry a second virtual address to the absolute address;
associating a synonym value with the absolute page storage map entry indicating whether the second virtual address matches the first virtual address; and
if the synonym value indicates the second virtual address matches the first virtual address, detecting potential storing to the first page;
if the synonym value indicates the second virtual address does not match the first virtual address, invalidating all translation lookaside buffer entries from the first page and cached instructions from the first page.

### Claim 26 (depends on 25)

The method of claim 25, wherein the absolute page storage map entry maps multiple virtual addresses, and the synonym value indicates whether the second virtual address is one of the virtual addresses mapped in the absolute page storage map entry.

### Claim 27 (depends on 25)

The method of claim 25, wherein the first translation lookaside buffer entry and the second translation lookaside buffer entry are in a first translation lookaside buffer.

### Claim 28 (depends on 25)

The method of claim 25, wherein the first translation lookaside buffer entry is in a first translation lookaside buffer and the second translation lookaside buffer entry is in a second translation lookaside buffer.
