Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
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
Carl Shapiro
cmucl
Commits
3325871e
Commit
3325871e
authored
20 years ago
by
cwang
Browse files
Options
Downloads
Patches
Plain Diff
Add registers r8-15
parent
9fb9e249
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lisp/Linux-os.c
+9
-5
9 additions, 5 deletions
lisp/Linux-os.c
lisp/amd64-lispregs.h
+12
-4
12 additions, 4 deletions
lisp/amd64-lispregs.h
with
21 additions
and
9 deletions
lisp/Linux-os.c
+
9
−
5
View file @
3325871e
...
...
@@ -15,7 +15,7 @@
* GENCGC support by Douglas Crosher, 1996, 1997.
* Alpha support by Julian Dolby, 1999.
*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.2
1
2004/0
9
/1
1
19:1
8
:0
2 rtoy
Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.2
2
2004/
1
0/1
9
19:1
2
:0
3 cwang
Exp $
*
*/
...
...
@@ -120,11 +120,7 @@ int sc_reg(struct sigcontext_struct *c, int offset)
#endif
#ifdef __x86_64
#if (LINUX_VERSION_CODE >= linuxversion(2,1,0)) || (__GNU_LIBRARY__ >= 6)
int
sc_reg
(
struct
sigcontext
*
c
,
int
offset
)
#else
int
sc_reg
(
struct
sigcontext_struct
*
c
,
int
offset
)
#endif
{
switch
(
offset
)
{
...
...
@@ -136,6 +132,14 @@ int sc_reg(struct sigcontext_struct *c, int offset)
case
10
:
return
c
->
rbp
;
case
12
:
return
c
->
rsi
;
case
14
:
return
c
->
rdi
;
case
16
:
return
c
->
r8
;
case
18
:
return
c
->
r9
;
case
20
:
return
c
->
r10
;
case
22
:
return
c
->
r11
;
case
24
:
return
c
->
r12
;
case
26
:
return
c
->
r13
;
case
28
:
return
c
->
r14
;
case
30
:
return
c
->
r15
;
}
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
lisp/amd64-lispregs.h
+
12
−
4
View file @
3325871e
/* x86-lispregs.h -*- Mode: C; -*-
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/amd64-lispregs.h,v 1.
1
2004/
05/18 22:06:04
cwang Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/amd64-lispregs.h,v 1.
2
2004/
10/19 19:07:17
cwang Exp $
*/
/* These register names and offsets correspond to definitions
...
...
@@ -8,7 +8,7 @@
* os dependent function.
*/
#define NREGS (
8
)
#define NREGS (
16
)
#ifdef LANGUAGE_ASSEMBLY
#define REG(num) $ ## num
...
...
@@ -24,15 +24,23 @@
#define reg_RBP REG(10)
#define reg_RSI REG(12)
#define reg_RDI REG(14)
#define reg_R8 REG(16)
#define reg_R9 REG(18)
#define reg_R10 REG(20)
#define reg_R11 REG(22)
#define reg_R12 REG(24)
#define reg_R13 REG(26)
#define reg_R14 REG(28)
#define reg_R15 REG(30)
#define reg_SP reg_RSP
#define reg_FP reg_RBP
#define REGNAMES "RAX", "RCX", "RDX", "RBX", "RSP", "RBP", "RSI", "RDI"
#define REGNAMES "RAX", "RCX", "RDX", "RBX", "RSP", "RBP", "RSI", "RDI"
, "R8", "R9", "R10", "R11", "R12", "R13", "R14", "R15"
/* These registers can contain lisp object pointers */
#define BOXED_REGISTERS {\
reg_RAX, reg_RCX, reg_RDX, reg_RBX, reg_RSI, reg_RDI \
reg_RAX, reg_RCX, reg_RDX, reg_RBX, reg_RSI, reg_RDI
, reg_R8, reg_R9, reg_R10, reg_R11, reg_R12, reg_R13, reg_R14, reg_R15
\
}
/* N is offset in storage class (SC) as defined in vm.lisp.
...
...
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