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
c1381fd3
Commit
c1381fd3
authored
Sep 22, 1993
by
Kresten Krab Thorup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(__enable_execute_stack): Add case for NeXT/__MACH__.
From-SVN: r5394
parent
9aefc7b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
gcc/libgcc2.c
+34
-0
No files found.
gcc/libgcc2.c
View file @
c1381fd3
...
...
@@ -1712,6 +1712,40 @@ __clear_cache (beg, end)
TRANSFER_FROM_TRAMPOLINE
#endif
#if defined (NeXT) && defined (__MACH__)
/* Make stack executable so we can call trampolines on stack.
This is called from INITIALIZE_TRAMPOLINE in next.h. */
#include <mach/mach.h>
void
__enable_execute_stack
(
addr
)
char
*
addr
;
{
kern_return_t
r
;
char
*
eaddr
=
addr
+
TRAMPOLINE_SIZE
;
vm_address_t
a
=
(
vm_address_t
)
addr
;
/* turn on execute access on stack */
r
=
vm_protect
(
task_self
(),
a
,
TRAMPOLINE_SIZE
,
FALSE
,
VM_PROT_ALL
);
if
(
r
!=
KERN_SUCCESS
)
{
mach_error
(
"vm_protect VM_PROT_ALL"
,
r
);
exit
(
1
);
}
/* We inline the i-cache invalidation for speed */
#ifdef CLEAR_INSN_CACHE
CLEAR_INSN_CACHE
(
addr
,
eaddr
);
#else
__clear_cache
((
int
)
addr
,
(
int
)
eaddr
);
#endif
}
#endif
/* defined (NeXT) && defined (__MACH__) */
#ifdef __convex__
/* Make stack executable so we can call trampolines on stack.
...
...
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