Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Gesh
GHC
Commits
85bea762
Commit
85bea762
authored
28 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-03-14 04:51:38 by sof]
Nil_closure rename + Linux 2.x sigcontext include fix
parent
e3036c87
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/runtime/main/Signals.lc
+23
-7
23 additions, 7 deletions
ghc/runtime/main/Signals.lc
with
23 additions
and
7 deletions
ghc/runtime/main/Signals.lc
+
23
−
7
View file @
85bea762
...
...
@@ -19,7 +19,7 @@ Since they're pretty rudimentary, they shouldn't actually cause as
much pain.
\begin{code}
#include "
platform
.h"
#include "
config
.h"
#if defined(sunos4_TARGET_OS)
/* The sigaction in SunOS 4.1.X does not grok SA_SIGINFO */
...
...
@@ -52,8 +52,24 @@ much pain.
#endif
#if defined(linux_TARGET_OS) || defined(linuxaout_TARGET_OS)
/* to look *inside* sigcontext... */
# include <asm/signal.h>
/* to look *inside* sigcontext...
sigcontext has moved and been protected from the General Public,
in later versions (>2), the sigcontext decl is protected by
a __KERNEL__ #ifdef. As ever, we workaround by trying to
be version savvy - the version numbers are currently just a guess!
(ToDo: determine at what version no. the sigcontext move
was made).
*/
# ifndef LINUX_VERSION_CODE
# include <linux/version.h>
# endif
# if (LINUX_VERSION_CODE < 0x020000)
# include <asm/signal.h>
# else
# include <asm/sigcontext.h>
# endif
#endif
#if defined(HAVE_SIGINFO_H)
...
...
@@ -62,7 +78,7 @@ much pain.
#endif
#if defined(cygwin32_TARGET_OS)
#include <windows.h>
#
include <windows.h>
#endif
\end{code}
...
...
@@ -155,7 +171,7 @@ segv_handler(sig)
{
/* From gdb/win32-nat.c */
DEBUG_EVENT event;
BOOL t =
TRUE; /*
WaitForDebugEvent (&event, INFINITE);
*/
BOOL t = WaitForDebugEvent (&event, INFINITE);
fflush(stdout);
if (t == FALSE) {
...
...
@@ -303,7 +319,7 @@ vtalrm_handler(int sig)
if (delayTicks != 0) /* delayTicks>0 => don't handle timer expiry (in GC) */
delayTicks++;
else if (WaitingThreadsHd != Prel
ud
e_Z91Z93_closure)
else if (WaitingThreadsHd != Prel
Bas
e_Z91Z93_closure)
AwaitEvent(RTSflags.ConcFlags.ctxtSwitchTime);
# ifdef PAR
...
...
@@ -322,7 +338,7 @@ vtalrm_handler(int sig)
if (CurrentTSO != NULL ||
# else
if (RunnableThreadsHd != Prel
ud
e_Z91Z93_closure ||
if (RunnableThreadsHd != Prel
Bas
e_Z91Z93_closure ||
# endif
PendingSparksHd[REQUIRED_POOL] < PendingSparksTl[REQUIRED_POOL] ||
PendingSparksHd[ADVISORY_POOL] < PendingSparksTl[ADVISORY_POOL]) {
...
...
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