Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ben Avison
Kernel
Commits
feb95c37
Commit
feb95c37
authored
2 years ago
by
Jeffrey Lee
Committed by
ROOL
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Change OS_Exit to use TaskControl_ResetStacks
parent
90a3c342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
s/Kernel
s/Kernel
+2
-2
No files found.
s/Kernel
View file @
feb95c37
...
...
@@ -1370,12 +1370,12 @@ SEXIT ROUT
SWIHI
OS_GenerateError
; really generate an error
ADD
sp
,
sp
,
#
8
; junk SWI no and R14 on stack
Pull
"r10-r12"
Pull
"r10-r12"
; Try and recover caller R10-R12
BL
TaskControl_ResetStacks
; R0-R3 corrupt, R13 reset
LDR
r0
,
=
ZeroPage
LDR
lr
,
[
r0
,
#
SExitA
]
STR
lr
,
[
r0
,
#
Curr_Active_Object
]
LDR
r12
,
[
r0
,
#
SExitA_ws
]
LDR
sp_svc
,
=
SVCSTK
MRS
r0
,
CPSR
MSR
CPSR_c
,
#
I32_bit
+
SVC2632
; IRQs off (to protect SPSR_svc)
BIC
r0
,
r0
,
#
I32_bit
+
F32_bit
+
&0F
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment