Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
0c8ae3d3
Commit
0c8ae3d3
authored
Nov 21, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(__enable_execute_stack): Add DolphinOS version.
From-SVN: r6136
parent
26d52b3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletions
+33
-1
gcc/libgcc2.c
+33
-1
No files found.
gcc/libgcc2.c
View file @
0c8ae3d3
/* More subroutines needed by GCC output code on some machines. */
/* More subroutines needed by GCC output code on some machines. */
/* Compile this one with gcc. */
/* Compile this one with gcc. */
/* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
/* Copyright (C) 1989, 1992
, 1993
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -1843,6 +1843,38 @@ __enable_execute_stack ()
...
@@ -1843,6 +1843,38 @@ __enable_execute_stack ()
}
}
#endif
/* __convex__ */
#endif
/* __convex__ */
#ifdef __DOLPHIN__
/* Modified from the convex -code above. */
#include <sys/param.h>
#include <errno.h>
#include <sys/m88kbcs.h>
void
__enable_execute_stack
()
{
int
save_errno
;
static
unsigned
long
lowest
=
USRSTACK
;
unsigned
long
current
=
(
unsigned
long
)
&
save_errno
&
-
NBPC
;
/* Ignore errno being set. memctl sets errno to EINVAL whenever the
address is seen as 'negative'. That is the case with the stack. */
save_errno
=
errno
;
if
(
lowest
>
current
)
{
unsigned
len
=
lowest
-
current
;
memctl
(
current
,
len
,
MCT_TEXT
);
lowest
=
current
;
}
else
memctl
(
current
,
NBPC
,
MCT_TEXT
);
errno
=
save_errno
;
}
#endif
/* __DOLPHIN__ */
#ifdef __pyr__
#ifdef __pyr__
#undef NULL
/* Avoid errors if stdio.h and our stddef.h mismatch. */
#undef NULL
/* Avoid errors if stdio.h and our stddef.h mismatch. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment