IP Library Granted Patent US 6,907,484
Granted Patent B2
US 6,907,484 · App. 10/253,790 · Granted Jun 14, 2005

Method and apparatus for atomically changing selected bits within a register

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 6,907,484
App. No.
10/253,790
Granted
Jun 14, 2005
Kind
B2
Abstract

One embodiment of the present invention provides a system that facilitates atomically updating selected bits within a register in a computing system. During operation, the system receives a command to update selected bits within the register. This command includes a data word and a control bit pattern. Next, the system examines the control bit pattern to determine an operation to be performed on the register. The system then performs the operation, which involves using the dataword to modify a content of the register atomically, without blocking subsequent commands to update the register.

Claims (39)

1. A method for atomically updating selected bits within a register, comprising:

receiving a command to update a content of the register, wherein the command includes a data word arid a control bit pattern;

examining the control bit pattern to determine an operation to be performed on the register; and

performing the operation by using a data word to modify selected bits in the register atomically, without blocking subsequent commands to update the content of the register.

2. The method of claim 1 , wherein if the control bit pattern specifies an OR operation, performing the operation involves ORing the data word with the content of the register.

3. The method of claim 1 , wherein if the control bit pattern specifies an AND operation, performing the operation involves ANDing a compliment of the data word with the content of the register.

4. The method of claim 1 , wherein if the control bit pattern specifies a write operation, performing the operation involves overwriting the content of the register the data word.

5. The method of claim 1 , wherein the content of the register can be successively updated from different sources.

6. The method of claim 1 wherein performing the operation involves using circuitry adjacent to the register to perform the operation without having to move the content of the register across a bus.

7. An apparatus for atomically updating selected bits within a register, comprising:

a receiving mechanism configured to receive a command to update selected bits within the register, wherein the command includes a data word and a control bit pattern;

an examining mechanism configured to examine the control bit pattern to determine an operation to be performed; and

an operation mechanism configured to use a data word to modify selected bits in the register atomically, without blocking subsequent commands to update the content of the register.

8. The apparatus of claim 7 , wherein if the control bit pattern specifies an OR operation, the operation mechanism is configured to OR the data word with the content of the register.

9. The apparatus of claim 7 , wherein if the control bit pattern specifies an AND operation, the operation mechanism is configured to AND a complement of the data word with the content of the register.

10. The apparatus of claim 7 , wherein if the control bit pattern specifies a write operation, the operation mechanism is configured overwrite the content of the register with the data word.

11. The apparatus of claim 7 , wherein the content of the register can be successively updated from different sources.

12. The apparatus of claim 7 , wherein the operation mechanism uses circuitry adjacent to the register to perform the operation without having to move the content of the register across a bus.

13. A computer system including a mechanism for atomically updating selected bits within a register, comprising:

a processor;

the register within the processor;

a memory;

a receiving mechanism configured to receive a command to update selected bits within the register, wherein the command includes a data word and a control bit pattern;

an examining mechanism configured to examine the control bit pattern to determine an operation to be performed; and

an operation mechanism configured to use a data word to modify selected bits in the register atomically, without blocking subsequent commands to update the content of the register.

14. The computer system of claim 13 , wherein if the control bit pattern specifies an OR operation, the operation mechanism is configured to OR the data word with the content of the register.

15. The computer system of claim 13 , wherein if the control bit pattern specifies an AND operation, the operation mechanism is configured to AND a complement of the data word with the content of the register.

16. The computer system of claim 13 , wherein if the control bit pattern specifies a write operation, the operation mechanism is configured overwrite the content of the register with the data word.

17. The computer system of claim 13 , wherein the content of the register can be successively updated from different sources.

18. The computer system of claim 13 , wherein the operation mechanism uses circuitry adjacent to the register to perform the operation without having to move the content of the register across a bus.

19. An integrated circuit including a mechanism for atomically updating selected bits within a register, comprising: the register;

a receiving mechanism configured to receive a command to update selected bits within the register, wherein the command includes a data word and a control bit pattern;

an examining mechanism configured to examine the control bit pattern to determine an operation to be performed; and

an operation mechanism configured to use a data word to modify selected bits in the register atomically, without blocking subsequent commands to update the content of the register.

20. The integrated circuit of claim 19 , wherein if the control bit pattern specifies an OR operation, the operation mechanism is configured to OR the data word with the content of the register.

21. The integrated circuit of claim 19 , wherein if the control bit pattern specifies an AND operation, the operation mechanism is configured to AND a complement of the data word with the content of the register.

22. The integrated circuit of claim 19 , wherein if the control bit pattern specifies a write operation, the operation mechanism is configured overwrite the content of the register with the data word.

23. The integrated circuit of claim 19 , wherein the content of the register can be successively updated from different sources.

24. The integrated circuit of claim 19 , wherein the operation mechanism uses circuitry adjacent to the register to perform the operation without having to move the content of the register across a bus.

Assignments (2)
MERGER AND CHANGE OF NAME Recorded Dec 12, 2015
From: ORACLE USA, INC.; SUN MICROSYSTEMS, INC.; ORACLE AMERICA, INC.
To: ORACLE AMERICA, INC.
Reel/Frame 037278/0842 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 24, 2002
From: DWYER, THOMAS J., III
To: SUN MICROSYSTEMS, INC.
Reel/Frame 013336/0716 →