Claims
- 1. A computer system, including a central processing unit and a main memory system, said computer system comprising:
- a battery for powering said computer system;
- a battery monitoring circuit for measuring a level of charge in said battery, said battery monitoring circuit providing a first control signal when said charge measured falls below a predetermined level;
- a logic circuit, coupled to receive said first control signal, for providing a second control signal; and
- a cache memory for said main memory system, said cache memory including a cache controller coupled to receive said second control signal, said cache controller initially operating said cache memory as a "write-back cache", said cache controller providing, in response to said second control signal, an interrupt signal to said central processing unit, thereby causing said central processing unit to execute a service routine in response to said interrupt signal, said service routine causing said central processing unit to provide a third control signal to said cache controller, whereupon said cache controller either disables said cache memory or operates said cache memory as a write-through cache, in response to said third control signal.
- 2. A computer system as in claim 1, wherein said central processing unit has a primary cache and wherein said cache memory serves as a secondary cache.
- 3. A computer system as in claim 1, wherein said cache controller, in response to said second control signal, writes out any modified cache lines in said cache memory to said main memory, prior to operating said cache memory as a write-through cache.
- 4. A computer system as in claim 1, wherein said logic circuit includes a keyboard controller.
- 5. A method for minimizing power consumption and data loss in a computer system, said computer system having a central processing unit and a main memory system, said method comprising the steps of:
- powering said computer system using a battery;
- monitoring a level of charge in said battery using a battery monitoring circuit and providing a first control signal to a logic circuit when said battery monitoring circuit detects said level of charge falling below a predetermined level;
- providing a second control signal generated by said logic circuit in response to said first control signal;
- providing a cache memory for said main memory system, said cache memory including a cache controller coupled to receive said second control signal, said cache controller operating said cache memory initially as a "write-back" cache; and
- providing an interrupt signal to said central processing unit, generated by said cache controller in response to said second control signal, so as to cause said central processing unit to execute a service routine in response to said interrupt signal, said service routine causing said central Processing unit to provide a third control signal to said controller, whereupon said cache controller either disables said cache memory or operates said cache memory as a write-through cache, in response to said third control signal.
- 6. A method as in claim 5, wherein said method provides in said central processing unit a primary cache and wherein said method provides said cache memory as a secondary cache.
- 7. A method as in claim 5, wherein said method, upon providing said second control signal, writes out any modified cache lines in said cache memory to said main memory, prior to operating said cache memory as a write-through cache.
- 8. A method in claim 5, wherein said method issues said second control signal from a keyboard controller.
Parent Case Info
This application is a continuation of application Ser. No. 08/205,217, filed Mar. 2, 1994, now abandoned.
US Referenced Citations (11)
Foreign Referenced Citations (1)
| Number |
Date |
Country |
| 305445 |
Dec 1988 |
JPX |
Continuations (1)
|
Number |
Date |
Country |
| Parent |
205217 |
Mar 1994 |
|