- Mar 16, 2017
-
-
David Sidrane authored
in the case of CONFIG_SEM_PREALLOCHOLDERS=0 The call to sem_restorebaseprio_task context switches in the sem_foreachholder(sem, sem_restoreholderprioB, stcb); call prior to releasing the holder. So the running task is left as a holder as is the started task. Leaving both slots filled Thus failing to perforem the boost/or restoration on the correct tcb. This PR fixes this by releasing the running task slot prior to reprioritization that can lead to the context switch. To faclitate this, the interface to sem_restorebaseprio needed to take the tcb from the holder prior to the holder being freed. In the failure case where sched_verifytcb fails it added the overhead of looking up the holder. There is also the adfitinal thunking on the foreach to get from holer to holder->tcb. An alternate approach could be to leve the interface the same and allocate a holder on the stack of sem_restoreholderprioB copy the sem's holder to it, free it as is done in this pr and and then pass that address sem_restoreholderprio as the holder. It could then get the holder's tcb but we would keep the same sem_findholder in sched_verifytcb.
-
- Mar 15, 2017
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
David Sidrane authored
lp_worker:Guard from pend_reprios overlow Approved-by: Gregory Nutt
-
David Sidrane authored
-
- Mar 14, 2017
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
David Cabecinhas authored
ARM: Fix off-by-one interrupt stack allocation in 8-byte aligned architectures Approved-by: Gregory Nutt
-
David Cabecinhas authored
-
David Sidrane authored
semaphore:sem_boostholderprio prevent overrun of pend_reprios Approved-by: Gregory Nutt
-
Alan Carvalho de Assis authored
-
Gregory Nutt authored
-
- Mar 13, 2017
-
-
David Sidrane authored
-
David Sidrane authored
The second case rtcb->sched_priority <= htcb->sched_priority did not check if there is sufficient space in the pend_reprios array.
-
David Sidrane authored
Partial Fix priority inheritance CONFIG_SEM_PREALLOCHOLDERS=0 Approved-by: Gregory Nutt
-
David Sidrane authored
sem_findholder would fail and code optimization coverd this up.
-
David Sidrane authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
Move wireless IOCTLs from include/nuttx/net/ioctl to include/nuttx/wireless/wireless.h. Add some linux compatible structures to use with the IOCTL commands.
-
Gregory Nutt authored
If whence is SEEK_END, the file offset shall be set to the size of the file plus offset. Noted by eunb.song@samsung.com
-
- Mar 12, 2017
-
-
Gregory Nutt authored
-
Gregory Nutt authored
Networking: Add registration support for integrated ieee80211 wireless drivers. Rename CONFIG_IEEE802154 to CONFIG_WIRELESS_IEEE8021514 following the convention of including the location of the configuration variable as a part of its name.
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Simon Piriou authored
Photon: add basic support for wlan chip Approved-by: Gregory Nutt
-
Simon Piriou authored
-
Gregory Nutt authored
STM32; OTG host implementations of stm32_in_transfer() must obey the polling interval for the case of isochronous and itnerrupt endpoints.
-
Gregory Nutt authored
-
Simon Piriou authored
-
Gregory Nutt authored
STM32 OTG HS: A little research reveals that only the F2 RCC initialization set the OTGHSULPIEN bit and Photon is the only F2 board configuration that uses OTG . Therefore, we can simplify the conditional logic of the last PR. Negative logic was used (#ifndef BOARD_DISABLE_USBOTG_HSULPI) to prevent bad settings in other configurations. But give these facts, the preferred positive logic now makes more sense (#ifdef BOARD_ENABLE_USBOTG_HSULPI).
-
- Mar 11, 2017
-
-
Simon Piriou authored
-
Gregory Nutt authored
STM32: Review of last STM32 F2 PR. Progate changes to STM32 F4 and F7 OTGHS. Rename some configs/photon/src files. Naming can be either photon_ or stm32_ but must be consistent.
-
Simon Piriou authored
stm32f20xxx: add BOARD_DISABLE_USBOTG_HSULPI flag Approved-by: Gregory Nutt
-
David Sidrane authored
Merged in david_s5/nuttx-13/david_s5/as-discovered-by-dcabecinhas-this-fix-as-1489246417893 (pull request #264) As discovered by dcabecinhas. This fix assume the 8 byte alignment options for size stack size or this will overwrite the first word after TOS Approved-by: Gregory Nutt
-
Simon Piriou authored
-
Simon Piriou authored
-