Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl-copy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard M Kreuter
cmucl-copy
Commits
16a8b276
Commit
16a8b276
authored
20 years ago
by
cwang
Browse files
Options
Downloads
Patches
Plain Diff
amd64 changes
parent
501a494f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lisp/os-common.c
+8
-2
8 additions, 2 deletions
lisp/os-common.c
with
8 additions
and
2 deletions
lisp/os-common.c
+
8
−
2
View file @
16a8b276
/*
/*
$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/os-common.c,v 1.1
2
200
3
/0
7
/19
14:10:16 emarsden
Exp $
$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/os-common.c,v 1.1
3
200
4
/0
5
/19
23:32:05 cwang
Exp $
This code was written as part of the CMU Common Lisp project at
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University, and has been placed in the public domain.
Carnegie Mellon University, and has been placed in the public domain.
...
@@ -319,7 +319,7 @@ os_stack_grows_down (void)
...
@@ -319,7 +319,7 @@ os_stack_grows_down (void)
static
void
static
void
guard_zones
(
char
**
yellow_start
,
char
**
red_start
)
guard_zones
(
char
**
yellow_start
,
char
**
red_start
)
{
{
#ifdef
i386
#if
(
def
ined(i386) || defined(__x86_64))
if
(
os_stack_grows_down
())
if
(
os_stack_grows_down
())
{
{
char
*
end
=
(
char
*
)
CONTROL_STACK_START
;
char
*
end
=
(
char
*
)
CONTROL_STACK_START
;
...
@@ -433,6 +433,11 @@ os_control_stack_overflow (void *fault_addr, struct sigcontext *context)
...
@@ -433,6 +433,11 @@ os_control_stack_overflow (void *fault_addr, struct sigcontext *context)
context
->
sc_eip
=
(
int
)
((
struct
function
*
)
PTR
(
error
))
->
code
;
context
->
sc_eip
=
(
int
)
((
struct
function
*
)
PTR
(
error
))
->
code
;
context
->
sc_ecx
=
0
;
context
->
sc_ecx
=
0
;
#else
#else
#ifdef __x86_64
/* RCX is the argument count. */
context
->
sc_rip
=
(
unsigned
long
)
((
struct
function
*
)
PTR
(
error
))
->
code
;
context
->
sc_rcx
=
0
;
#else
#ifdef sparc
#ifdef sparc
/* This part should be common to all non-x86 ports */
/* This part should be common to all non-x86 ports */
SC_PC
(
context
)
=
(
long
)
((
struct
function
*
)
PTR
(
error
))
->
code
;
SC_PC
(
context
)
=
(
long
)
((
struct
function
*
)
PTR
(
error
))
->
code
;
...
@@ -445,6 +450,7 @@ os_control_stack_overflow (void *fault_addr, struct sigcontext *context)
...
@@ -445,6 +450,7 @@ os_control_stack_overflow (void *fault_addr, struct sigcontext *context)
#else
#else
#error os_control_stack_overflow not implemented for this system
#error os_control_stack_overflow not implemented for this system
#endif
#endif
#endif
#endif
#endif
return
1
;
return
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment