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
96474790
Commit
96474790
authored
20 years ago
by
cwang
Browse files
Options
Downloads
Patches
Plain Diff
Another allocation function
Port undefined_foreign_symbol_trap
parent
4fee063e
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/amd64-assem.S
+36
-9
36 additions, 9 deletions
lisp/amd64-assem.S
with
36 additions
and
9 deletions
lisp/amd64-assem.S
+
36
−
9
View file @
96474790
###
amd64
-
assem.S
-*-
Mode
:
Asm
; -*-
###
amd64
-
assem.S
-*-
Mode
:
Asm
; -*-
/**
/**
*
$Header
:
/
Volumes
/
share2
/
src
/
cmucl
/
cvs2git
/
cvsroot
/
src
/
lisp
/
amd64
-
assem
.
S
,
v
1
.
8
2004
/
07
/
2
0
2
2
:
36
:
54
cwang
Exp
$
*
$Header
:
/
Volumes
/
share2
/
src
/
cmucl
/
cvs2git
/
cvsroot
/
src
/
lisp
/
amd64
-
assem
.
S
,
v
1
.
9
2004
/
07
/
2
7
2
1
:
07
:
49
cwang
Exp
$
*
*
*
Authors
:
Paul
F
.
Werkowski
<
pw
@
snoopy
.
mv
.
com
>
*
Authors
:
Paul
F
.
Werkowski
<
pw
@
snoopy
.
mv
.
com
>
*
Douglas
T
.
Crosher
*
Douglas
T
.
Crosher
...
@@ -1029,6 +1029,37 @@ GNAME(alloc_overflow_r12):
...
@@ -1029,6 +1029,37 @@ GNAME(alloc_overflow_r12):
addl
$
13
,(%
rsp
)
#
Adjust
the
return
address
to
skip
the
next
inst
.
addl
$
13
,(%
rsp
)
#
Adjust
the
return
address
to
skip
the
next
inst
.
ret
ret
.
size
GNAME
(
alloc_overflow_r12
),
.
-
GNAME
(
alloc_overflow_r12
)
.
size
GNAME
(
alloc_overflow_r12
),
.
-
GNAME
(
alloc_overflow_r12
)
/*
This
routine
handles
an
overflow
with
r13
=
crfp
+
size
.
So
the
size
=
r13
-
crfp
.
*/
.
align
align_4byte
.
globl
GNAME
(
alloc_overflow_r13
)
.
type
GNAME
(
alloc_overflow_r13
),
@
function
GNAME
(
alloc_overflow_r13
):
pushq
%
rax
#
Save
rax
pushq
%
rcx
#
Save
rcx
pushq
%
rdx
#
Save
rdx
pushq
%
rdi
pushq
%
rsi
pushq
%
r8
pushq
%
r9
pushq
%
r10
/
*
Calculate
the
size
for
the
allocation
.
*/
subq
CURRENT_REGION_FREE_POINTER
+
SYMBOL_VALUE_OFFSET
,%
r13
movq
%
r13
,
%
rdi
#
Pass
arg
1
call
GNAME
(
alloc
)
movq
%
rax
,%
r13
#
setup
the
destination
.
popq
%
r10
popq
%
r9
popq
%
r8
popq
%
rsi
popq
%
rdi
popq
%
rdx
#
Restore
rdx
.
popq
%
rcx
#
Restore
rcx
.
popq
%
rax
#
Restore
rax
.
addl
$
13
,(%
rsp
)
#
Adjust
the
return
address
to
skip
the
next
inst
.
ret
.
size
GNAME
(
alloc_overflow_r13
),
.
-
GNAME
(
alloc_overflow_r13
)
#endif
#endif
...
@@ -1088,14 +1119,10 @@ GNAME(resolve_linkage_tramp):
...
@@ -1088,14 +1119,10 @@ GNAME(resolve_linkage_tramp):
.
global
GNAME
(
undefined_foreign_symbol_trap
)
.
global
GNAME
(
undefined_foreign_symbol_trap
)
.
type
GNAME
(
undefined_foreign_symbol_trap
),
@
function
.
type
GNAME
(
undefined_foreign_symbol_trap
),
@
function
GNAME
(
undefined_foreign_symbol_trap
):
GNAME
(
undefined_foreign_symbol_trap
):
/
*
C
Calling
Convention
,
move
one
arg
to
EAX
*/
/
*
C
Calling
Convention
,
move
one
arg
to
RAX
*/
#if TOO_LAME_TO_PORT_IT_YET
pushq
%
rbp
pushl
%
ebp
movq
%
rsp
,%
rbp
#endif
movq
%
rdi
,%
rax
movl
%
esp
,%
ebp
#if TOO_LAME_TO_PORT_IT_YET
movl
8
(%
ebp
),%
eax
#endif
/
*
Now
trap
to
Lisp
*/
/
*
Now
trap
to
Lisp
*/
int3
int3
...
...
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