public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] newlib/configure.host: Turn off sti/cli for i386 setjmp for i386-rtems*
@ 2016-03-22 14:45 Joel Sherrill
0 siblings, 0 replies; 2+ messages in thread
From: Joel Sherrill @ 2016-03-22 14:45 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4db48d17ebac131585d036ccf11eec935e4cc126
commit 4db48d17ebac131585d036ccf11eec935e4cc126
Author: Joel Sherrill <joel@rtems.org>
Date: Thu Feb 25 11:43:18 2016 -0600
newlib/configure.host: Turn off sti/cli for i386 setjmp for i386-rtems*
When running RTEMS paravirtualized in user space, the cli/sti instructions
can't be used. But I can't see why they are needed in either user or
supervisor state. Turning the use of them off for RTEMS.
This code is unmodified since the beginning of the repository, so I have
no insight into why it was done. I may even have been the one to add them.
Absolutely no idea except they aren't necessary.
Diff:
---
newlib/configure.host | 2 ++
1 file changed, 2 insertions(+)
diff --git a/newlib/configure.host b/newlib/configure.host
index baaaa7e..8b0846e 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -592,6 +592,8 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL -DHAVE_ASSERT_FUNC"
# turn off unsupported items in posix directory
newlib_cflags="${newlib_cflags} -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -D_NO_POSIX_SPAWN"
+ # turn off using cli/sti in i386 setjmp/longjmp
+ newlib_cflags="${newlib_cflags} -D_I386MACH_ALLOW_HW_INTERRUPTS"
;;
# VxWorks supplies its own version of malloc, and the newlib one
# doesn't work because VxWorks does not have sbrk.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [newlib-cygwin] newlib/configure.host: Turn off sti/cli for i386 setjmp for i386-rtems*
@ 2016-02-26 15:55 Joel Sherrill
0 siblings, 0 replies; 2+ messages in thread
From: Joel Sherrill @ 2016-02-26 15:55 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=678f774727527b0d398052ee4dcbcbcf72327910
commit 678f774727527b0d398052ee4dcbcbcf72327910
Author: Joel Sherrill <joel@rtems.org>
Date: Thu Feb 25 11:43:18 2016 -0600
newlib/configure.host: Turn off sti/cli for i386 setjmp for i386-rtems*
Diff:
---
newlib/configure.host | 2 ++
1 file changed, 2 insertions(+)
diff --git a/newlib/configure.host b/newlib/configure.host
index 5fa37d4..f6abb5c 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -592,6 +592,8 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL -DHAVE_ASSERT_FUNC"
# turn off unsupported items in posix directory
newlib_cflags="${newlib_cflags} -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -D_NO_POSIX_SPAWN"
+ # turn off using cli/sti in i386 setjmp/longjmp
+ newlib_cflags="${newlib_cflags} -D_I386MACH_ALLOW_HW_INTERRUPTS"
;;
# VxWorks supplies its own version of malloc, and the newlib one
# doesn't work because VxWorks does not have sbrk.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-22 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-22 14:45 [newlib-cygwin] newlib/configure.host: Turn off sti/cli for i386 setjmp for i386-rtems* Joel Sherrill
-- strict thread matches above, loose matches on Subject: below --
2016-02-26 15:55 Joel Sherrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).