Rev 9709 | Rev 9910 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9709 | Rev 9715 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 9709 $ |
8 | $Revision: 9715 $ |
9 | 9 | ||
10 | 10 | ||
Line 98... | Line 98... | ||
98 | align 4 |
98 | align 4 |
99 | do_change_task: |
99 | do_change_task: |
100 | ;param: |
100 | ;param: |
101 | ; ebx = address of the APPDATA for incoming task (new) |
101 | ; ebx = address of the APPDATA for incoming task (new) |
102 | ;warning: |
102 | ;warning: |
103 | ; [current_slot_idx] and [TASK_BASE] must be changed before (e.g. in find_next_task) |
103 | ; [current_slot_idx] must be changed before (e.g. in find_next_task) |
104 | ; [current_slot] is the outcoming (old), and set here to a new value (ebx) |
104 | ; [current_slot] is the outcoming (old), and set here to a new value (ebx) |
105 | ;scratched: eax,ecx,esi |
105 | ;scratched: eax,ecx,esi |
106 | mov esi, ebx |
106 | mov esi, ebx |
107 | xchg esi, [current_slot] |
107 | xchg esi, [current_slot] |
108 | ; set new stack after saving old |
108 | ; set new stack after saving old |