×

Semaphoring system between system firmware and hardware manipulation subsystem

  • US 7,305,508 B2
  • Filed: 10/22/2003
  • Issued: 12/04/2007
  • Est. Priority Date: 10/22/2003
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of semaphoring between a system firmware and Advanced Configuration and Power Interface (ACPI) subsystem, the method comprising:

  • prior to entering a critical section of a shared memory by a first entity, checking, by the first entity, a turn flag to determine if the first entity or a second entity has a turn to access the critical section of the shared memory, wherein the turn flag has a first value if the first entity has the turn to access the critical section and wherein the turn flag has a second value if the second entity has the turn to access the critical section;

    if the first entity will attempt to access the critical section and if the first entity has the turn to access the critical section of the shared memory, then changing, by the first entity, a value in the turn flag from the first value to the second value so that the second entity will have the turn to access the critical section of the shared memory;

    if the first entity will attempt to access the critical section and if the second entity has the turn to access the critical section of the shared memory, then checking, by the first entity, a second In flag that is associated with the second entity so that the first entity determines if the second entity is in the critical section, wherein the second In flag has the first value if the second entity is in the critical section and has the second value if the second entity is not in the critical section;

    if the first entity will attempt to access the critical section and if the second entity is in the critical section, then avoiding to enter the critical section by the first entity until after the second entity exits the critical section;

    changing, by the second entity, the second In flag to the second value after the second entity exits the critical section;

    changing, by the first entity, a first In flag that is associated with the first entity to the first value prior to the first entity entering the critical section, wherein the first In flag has the first value if the first entity is in the critical section and has the second value if the first entity is not in the critical section; and

    entering the critical section by the first entity after the second entity exits the critical section and after the first entity has set the first In flag to the first value.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×