Update README and some comments

This commit is contained in:
Gregory Nutt 2018-01-20 12:59:56 -06:00 committed by Matt Thompson
parent 414c449cf9
commit 2f0bc1907b
2 changed files with 23 additions and 4 deletions

View File

@ -1422,6 +1422,22 @@ Installing GNUWin32
CYGWIN BUILD PROBLEMS CYGWIN BUILD PROBLEMS
^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
Performance
-----------
Build performance under Cygwin is really not so bad, certainly not as good
as a Linux build. However, often you will find that the performance is
not just bad but terrible. If you are seeing awful performance.. like two
or three compilations per second.. the culprit is usually your Windows
Anti-Virus protection interfering with the build tool program execution.
I use Cygwin quite often and I use Windows Defender. In order to get good
build performance, I routinely keep the Windows Defender "Virus & Threat
Protections Settings" screen up: I disable "Real-Time Protection" just
before entering 'make' then turn "Real-Time Protection" back on when the
build completes. With this additional nuisance step, I find that build
performance under Cygwin is completely acceptable.
Strange Path Problems Strange Path Problems
--------------------- ---------------------
@ -1475,6 +1491,7 @@ Window Native Toolchain Issues
if you are using a native Windows toolchain. That bring us to #3: if you are using a native Windows toolchain. That bring us to #3:
General Pre-built Toolchain Issues General Pre-built Toolchain Issues
----------------------------------
To continue with the list of "Window Native Toolchain Issues" we can add To continue with the list of "Window Native Toolchain Issues" we can add
the following. These, however, are really just issues that you will have the following. These, however, are really just issues that you will have
@ -1528,6 +1545,7 @@ General Pre-built Toolchain Issues
binutils and possibly different ABIs. binutils and possibly different ABIs.
Building Original Linux Boards in Cygwin Building Original Linux Boards in Cygwin
----------------------------------------
Some default board configurations are set to build under Linux and others Some default board configurations are set to build under Linux and others
to build under Windows with Cygwin. Various default toolchains may also to build under Windows with Cygwin. Various default toolchains may also
@ -1546,6 +1564,7 @@ Building Original Linux Boards in Cygwin
("Run As" option, right button) you find errors like "Permission denied". ("Run As" option, right button) you find errors like "Permission denied".
Recovering from Bad Configurations Recovering from Bad Configurations
----------------------------------
Many people make the mistake of configuring NuttX with the "canned" Many people make the mistake of configuring NuttX with the "canned"
configuration and then just typing 'make' with disastrous consequences; configuration and then just typing 'make' with disastrous consequences;

View File

@ -138,10 +138,10 @@ static int sporadic_set_lowpriority(FAR struct tcb_s *tcb)
* than the low priority (but less than the hi_priority), the new * than the low priority (but less than the hi_priority), the new
* sched_priority should be set to that priority, not to the lo_priority * sched_priority should be set to that priority, not to the lo_priority
* *
* In order to do this we would need a list of all semaphores held by * In order to do this we would need to know the highest priority from
* the thread. We would need to select the highest priority from among * among all tasks waiting for the all semaphores held by the sporadic
* all tasks waiting for the semaphores. Unfortunately, at present we * task. Perhaps that information could be retained by the priority
* know nothing about the semaphores held by the sporadic thread. * inheritance logic for use here?
*/ */
if (tcb->sched_priority > tcb->base_priority) if (tcb->sched_priority > tcb->base_priority)