Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
597b2a91
Commit
597b2a91
authored
Nov 16, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: make signal handler work on 386
R=r
https://golang.org/cl/154171
parent
1ee83f85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
src/pkg/runtime/darwin/386/sys.s
src/pkg/runtime/darwin/386/sys.s
+17
-6
src/pkg/runtime/darwin/os.h
src/pkg/runtime/darwin/os.h
+1
-1
No files found.
src/pkg/runtime/darwin/386/sys.s
View file @
597b2a91
...
...
@@ -58,23 +58,34 @@ TEXT sigaction(SB),7,$0
//
16(
FP
)
siginfo
//
20(
FP
)
context
TEXT
sigtramp
(
SB
),7,$40
//
Darwin
sets
GS
to
0x37
on
entry
.
//
The
original
GS
is
at
0x70
(
FP
)
.
MOVL
oldgs
+
0x70
(
FP
),
BX
MOVW
BX
,
GS
//
g
=
m
->
gsignal
MOVL
m
,
BP
MOVL
m_gsignal
(
BP
),
BP
MOVL
BP
,
g
MOVL
handler
+
4
(
FP
),
DI
MOVL
signo
+
12
(
FP
),
AX
MOVL
siginfo
+
16
(
FP
),
BX
MOVL
context
+
20
(
FP
),
CX
MOVL
handler
+
0
(
FP
),
DI
//
4
(
FP
)
is
sigstyle
MOVL
signo
+
8
(
FP
),
AX
MOVL
siginfo
+
12
(
FP
),
BX
MOVL
context
+
16
(
FP
),
CX
MOVL
AX
,
0
(
SP
)
MOVL
BX
,
4
(
SP
)
MOVL
CX
,
8
(
SP
)
CALL
DI
MOVL
context
+
20
(
FP
),
CX
MOVL
style
+
8
(
FP
),
BX
//
g
=
m
->
curg
MOVL
m
,
BP
MOVL
m_curg
(
BP
),
BP
MOVL
BP
,
g
MOVL
context
+
16
(
FP
),
CX
MOVL
style
+
4
(
FP
),
BX
MOVL
$
0
,
0
(
SP
)
//
"caller PC"
-
ignored
MOVL
CX
,
4
(
SP
)
...
...
src/pkg/runtime/darwin/os.h
View file @
597b2a91
...
...
@@ -17,7 +17,7 @@ uint32 mach_thread_self(void);
uint32
mach_thread_self
(
void
);
struct
Sigaction
;
void
sigaction
(
int64
,
struct
Sigaction
*
,
struct
Sigaction
*
);
void
sigaction
(
uintptr
,
struct
Sigaction
*
,
struct
Sigaction
*
);
struct
StackT
;
void
sigaltstack
(
struct
StackT
*
,
struct
StackT
*
);
...
...
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