Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/17/04 15:09
Read: times


 
#76050 - RE: 8051 Context Switching
Responding to: ???'s previous message
what does constitute 8051 context

That depends upon the tasks.

Every task will use the accumulator, PSW, PC and SP. So they are definitely part of the task context.

However the tasks may also use(and most of them do) the register banks. You need to save their contents if other tasks are sharing the same register bank. In such a case the registers(of the register bank) may also be treated as part of the context.

The same can be said for the B register, since it will be shared by all tasks which use the MUL and/or DIV instructions.

Any register which if fiddled with will cause the task to malfunction should be saved before the task is "swapped out" of the cpu.

Rumi

List of 24 messages in thread
TopicAuthorDate
8051 Context Switching            01/01/70 00:00      
   Why??            01/01/70 00:00      
      RE: Why??            01/01/70 00:00      
         RE: On an 8051??            01/01/70 00:00      
            RE: On an 8051??            01/01/70 00:00      
   RE: 8051 Context Switching            01/01/70 00:00      
   RE: 8051 Context Switching            01/01/70 00:00      
      RE: 8051 Context Switching            01/01/70 00:00      
         RE: 8051 Context Switching            01/01/70 00:00      
            RE: 8051 Context Switching            01/01/70 00:00      
               RE: 8051 Context Switching            01/01/70 00:00      
                  RE: 8051 Context Switching            01/01/70 00:00      
                     RE: 8051 Context Switching            01/01/70 00:00      
                        RE: 8051 Context Switching            01/01/70 00:00      
                           RE: 8051 Context Switching            01/01/70 00:00      
                              RE: 8051 Context Switching            01/01/70 00:00      
                                 RE: 8051 Context Switching            01/01/70 00:00      
                                    RE: 8051 Context Switching            01/01/70 00:00      
                                       RE: 8051 Context Switching            01/01/70 00:00      
                                          RE: 8051 Context Switching            01/01/70 00:00      
                                             RE: 8051 Context Switching            01/01/70 00:00      
               RE: 8051 Context Switching            01/01/70 00:00      
   RE: 8051 Context Switching            01/01/70 00:00      
   RE: 8051 Context Switching            01/01/70 00:00      

Back to Subject List