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
686f8394
Commit
686f8394
authored
28 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
Patches by Casper Dik.
parent
5e03c2d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lisp/sparc-arch.c
+22
-2
22 additions, 2 deletions
lisp/sparc-arch.c
with
22 additions
and
2 deletions
lisp/sparc-arch.c
+
22
−
2
View file @
686f8394
/*
/*
$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/sparc-arch.c,v 1.
5
199
4/10/27 17:13:54 ram
Exp $
$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/sparc-arch.c,v 1.
6
199
7/02/19 05:09:52 dtc
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.
...
@@ -100,12 +100,14 @@ unsigned long arch_install_breakpoint(void *pc)
...
@@ -100,12 +100,14 @@ unsigned long arch_install_breakpoint(void *pc)
unsigned
long
*
ptr
=
(
unsigned
long
*
)
pc
;
unsigned
long
*
ptr
=
(
unsigned
long
*
)
pc
;
unsigned
long
result
=
*
ptr
;
unsigned
long
result
=
*
ptr
;
*
ptr
=
trap_Breakpoint
;
*
ptr
=
trap_Breakpoint
;
os_flush_icache
((
os_vm_address_t
)
pc
,
sizeof
(
unsigned
long
));
return
result
;
return
result
;
}
}
void
arch_remove_breakpoint
(
void
*
pc
,
unsigned
long
orig_inst
)
void
arch_remove_breakpoint
(
void
*
pc
,
unsigned
long
orig_inst
)
{
{
*
(
unsigned
long
*
)
pc
=
orig_inst
;
*
(
unsigned
long
*
)
pc
=
orig_inst
;
os_flush_icache
((
os_vm_address_t
)
pc
,
sizeof
(
unsigned
long
));
}
}
static
unsigned
long
*
skipped_break_addr
,
displaced_after_inst
;
static
unsigned
long
*
skipped_break_addr
,
displaced_after_inst
;
...
@@ -131,9 +133,11 @@ void arch_do_displaced_inst(struct sigcontext *scp,
...
@@ -131,9 +133,11 @@ void arch_do_displaced_inst(struct sigcontext *scp,
#endif
#endif
*
pc
=
orig_inst
;
*
pc
=
orig_inst
;
os_flush_icache
((
os_vm_address_t
)
pc
,
sizeof
(
unsigned
long
));
skipped_break_addr
=
pc
;
skipped_break_addr
=
pc
;
displaced_after_inst
=
*
npc
;
displaced_after_inst
=
*
npc
;
*
npc
=
trap_AfterBreakpoint
;
*
npc
=
trap_AfterBreakpoint
;
os_flush_icache
((
os_vm_address_t
)
npc
,
sizeof
(
unsigned
long
));
#ifdef SOLARIS
#ifdef SOLARIS
/* XXX never tested */
/* XXX never tested */
...
@@ -162,8 +166,22 @@ static void sigill_handler(HANDLER_ARGS)
...
@@ -162,8 +166,22 @@ static void sigill_handler(HANDLER_ARGS)
#endif
#endif
{
{
int
trap
;
int
trap
;
unsigned
inst
;
unsigned
*
pc
=
(
unsigned
*
)(
SC_PC
(
context
));
trap
=
*
(
unsigned
long
*
)(
SC_PC
(
context
))
&
0x3fffff
;
inst
=
*
pc
;
#ifdef SOLARIS
/* SPARC v9 doesn't like our trap instructions */
if
((
inst
&
0xe1f82000
)
==
0x81d02000
)
{
/* only 7 bits of trap # are allowed, not 13 as previously */
/* clear reserved bits */
inst
&=
~
0x1f80
;
*
pc
=
inst
;
os_flush_icache
((
os_vm_address_t
)
pc
,
sizeof
(
unsigned
long
));
return
;
}
#endif
trap
=
inst
&
0x3fffff
;
switch
(
trap
)
{
switch
(
trap
)
{
case
trap_PendingInterrupt
:
case
trap_PendingInterrupt
:
...
@@ -198,6 +216,8 @@ static void sigill_handler(HANDLER_ARGS)
...
@@ -198,6 +216,8 @@ static void sigill_handler(HANDLER_ARGS)
#else
#else
context
->
sc_mask
=
orig_sigmask
;
context
->
sc_mask
=
orig_sigmask
;
#endif
#endif
os_flush_icache
((
os_vm_address_t
)
SC_PC
(
context
),
sizeof
(
unsigned
long
));
break
;
break
;
default:
default:
...
...
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