Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
e9047d1f
Commit
e9047d1f
authored
Sep 12, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix silly portability bug
R=gri OCL=15238 CL=15238
parent
e1a9b6ee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
rt1_amd64_darwin.c
src/runtime/rt1_amd64_darwin.c
+3
-0
rt1_amd64_linux.c
src/runtime/rt1_amd64_linux.c
+3
-0
rt2_amd64.c
src/runtime/rt2_amd64.c
+1
-2
runtime.h
src/runtime/runtime.h
+1
-0
No files found.
src/runtime/rt1_amd64_darwin.c
View file @
e9047d1f
...
...
@@ -6,6 +6,9 @@
#include "amd64_darwin.h"
#include "signals.h"
extern
void
_rt0_amd64_darwin
();
byte
*
startsym
=
(
byte
*
)
_rt0_amd64_darwin
;
typedef
uint64
__uint64_t
;
/* From /usr/include/mach/i386/_structs.h */
...
...
src/runtime/rt1_amd64_linux.c
View file @
e9047d1f
...
...
@@ -6,6 +6,9 @@
#include "amd64_linux.h"
#include "signals.h"
extern
void
_rt0_amd64_linux
();
byte
*
startsym
=
(
byte
*
)
_rt0_amd64_linux
;
/* From /usr/include/asm-x86_64/sigcontext.h */
struct
_fpstate
{
uint16
cwd
;
...
...
src/runtime/rt2_amd64.c
View file @
e9047d1f
...
...
@@ -94,11 +94,10 @@ int32
inlinetrap
(
int32
sig
,
byte
*
pc
)
{
extern
void
etext
();
extern
void
_rt0_amd64_darwin
();
if
(
sig
!=
5
)
/* SIGTRAP */
return
0
;
if
(
pc
-
2
<
(
byte
*
)
_rt0_amd64_darwin
||
pc
>=
(
byte
*
)
etext
)
if
(
pc
-
2
<
startsym
||
pc
>=
(
byte
*
)
etext
)
return
0
;
if
(
pc
[
-
2
]
!=
0xcd
)
/* INTB */
return
0
;
...
...
src/runtime/runtime.h
View file @
e9047d1f
...
...
@@ -208,6 +208,7 @@ G* allg;
int32
goidgen
;
extern
int32
gomaxprocs
;
extern
int32
panicking
;
extern
byte
*
startsym
;
/*
* common functions and data
...
...
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