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
2e15472b
Commit
2e15472b
authored
26 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
Provide our own implementation of setfpucw for the Linux port, as
recent libraries are reported to no long provide __setfpucw.
parent
7e0a936e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lisp/Linux-os.c
+2
-2
2 additions, 2 deletions
lisp/Linux-os.c
lisp/Linux-os.h
+3
-1
3 additions, 1 deletion
lisp/Linux-os.h
lisp/interrupt.c
+3
-3
3 additions, 3 deletions
lisp/interrupt.c
with
8 additions
and
6 deletions
lisp/Linux-os.c
+
2
−
2
View file @
2e15472b
...
...
@@ -14,7 +14,7 @@
* Morfed from the FreeBSD file by Peter Van Eynde (July 1996)
* GENCGC support by Douglas Crosher, 1996, 1997.
*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.
4
199
8
/0
5
/0
1 01:21:40
dtc Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.
5
199
9
/0
2
/0
2 10:58:24
dtc Exp $
*
*/
...
...
@@ -97,7 +97,7 @@ os_init(void)
#else
os_vm_page_size
=
getpagesize
();
#endif
__
setfpucw
(
0x1372
|
4
|
8
|
16
|
32
);
/*no interrupts */
setfpucw
(
0x1372
|
4
|
8
|
16
|
32
);
/*no interrupts */
}
int
...
...
This diff is collapsed.
Click to expand it.
lisp/Linux-os.h
+
3
−
1
View file @
2e15472b
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.h,v 1.
6
199
8
/0
6/16 06
:58:
58
dtc Exp $
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.h,v 1.
7
199
9
/0
2/02 10
:58:
24
dtc Exp $
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University, and has been placed in the public domain.
...
...
@@ -60,6 +60,8 @@ typedef struct sigcontext_struct sigcontext;
#define GET_CONTEXT int code=0; struct sigcontext_struct *context=&contextstruct;
#endif
#define setfpucw(cw) asm("fldcw %0" : : "m" (cw));
#define sigvec sigaction
#define sv_mask sa_mask
#define sv_flags sa_flags
...
...
This diff is collapsed.
Click to expand it.
lisp/interrupt.c
+
3
−
3
View file @
2e15472b
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/interrupt.c,v 1.1
5
199
8
/0
5
/0
1 01:21:42
dtc Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/interrupt.c,v 1.1
6
199
9
/0
2
/0
2 10:58:25
dtc Exp $ */
/* Interrupt handing magic. */
...
...
@@ -267,7 +267,7 @@ interrupt_handle_now(HANDLER_ARGS)
union
interrupt_handler
handler
;
#ifdef __linux__
__
setfpucw
(
contextstruct
.
fpstate
->
cw
);
setfpucw
(
contextstruct
.
fpstate
->
cw
);
#endif
handler
=
interrupt_handlers
[
signal
];
...
...
@@ -356,7 +356,7 @@ maybe_now_maybe_later(HANDLER_ARGS)
SAVE_CONTEXT
();
/**/
#ifdef __linux__
__
setfpucw
(
contextstruct
.
fpstate
->
cw
);
setfpucw
(
contextstruct
.
fpstate
->
cw
);
#endif
if
(
SymbolValue
(
INTERRUPTS_ENABLED
)
==
NIL
)
{
...
...
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