Gregory Nutt
29028bcd5a
romfs: Simplify fstat() implementation. It is not necessary to save the file type at open, We know in this context that the file is a regular file.
2017-02-13 06:55:06 -06:00
Manohara HK
b154531838
I found an issue inside the cp15_coherent_dcache function in file, arch/arm/src/armv7-r/cp15_coherent_dcache.S.
...
The "mcr CP15_BPIALLIS(r0)" instruction is used for invalidating entire branch predictor. But the problem is, since this is the generic code and can be called on any armv7-r architecture based CPU's. It is a problem, if this instruction is called in uni processor configuration. Because, BPIALLIS (c7, 0, c1, 6) instruction is only added as part of the "Multiprocessing Extensions" (As per ARM® Architecture Reference Manual /ARMv7-A and ARMv7-R edition)
So in my opinion, this instruction should be under SMP configuration. In non-SMP configuration this instruction could become undefined.
2017-02-13 06:33:15 -06:00
Gregory Nutt
904478c1d9
Merge remote-tracking branch 'origin/master' into fstat
2017-02-12 17:09:18 -06:00
Gregory Nutt
c433724b23
unionfs: Missing declaration of 'ret'
2017-02-12 17:08:50 -06:00
Gregory Nutt
2cb402080a
fstat: Add fstat() support to unionfs
2017-02-12 17:05:47 -06:00
Gregory Nutt
4748e9352d
fstat: Add fstat() support to romfs
2017-02-12 16:25:12 -06:00
Gregory Nutt
d06b346b5c
Add fstat support to binfs
2017-02-12 14:47:05 -06:00
Gregory Nutt
7d91fabf01
fstat: Add skeleton implmentations of fstat() in all file systems.
2017-02-12 13:42:27 -06:00
Gregory Nutt
c5a8e96dbc
Add basic fstat() support. Now all that is needed is to modify ALL of the file systems.
2017-02-12 12:48:24 -06:00
Gregory Nutt
9a3af1a3e0
Update TODO list
2017-02-12 12:10:46 -06:00
Gregory Nutt
3055025e00
rename(): Correct more issues. (1) Move to the root directory in the pseudo file system, (2) Fix path naming calculation when the path is the root directory of a mounted file system, and (3) dont't do the rename if the source and destination of the rename are the same.
2017-02-12 08:37:28 -06:00
Gregory Nutt
e20e9f0fe4
Update a comment
2017-02-11 18:55:13 -06:00
Gregory Nutt
2d11d8f1a4
rename: An inode with no operations should be treated like a directory for the purposes of rename
2017-02-11 12:02:50 -06:00
Gregory Nutt
bd7d3a92f5
Add logic to VFS rename: If target of rename exists and is a directory, then the source file should be moved 'under' the target directory. POSIX also requires that if the target is a file, then that old file must be deleted.
2017-02-11 11:18:30 -06:00
Gregory Nutt
af5a8e73d3
VFS rename: Fix issues with rename to subdirectories and some softlink issues.
2017-02-11 10:08:23 -06:00
Gregory Nutt
1ca0437909
libc/Kconfig: Remove source'ing file twice. Use cleaner dependencies in some menus.
2017-02-10 10:28:34 -06:00
Gregory Nutt
67feda60b2
libc/Kconfig: Use menus vs. comments to better organize the C library menus
2017-02-10 10:04:56 -06:00
Gregory Nutt
de1b68dc4e
libc/Kconfig: Break big Kconfig up into separate Kconfig files in each libc subdirectory.
2017-02-10 09:32:55 -06:00
Alan Carvalho de Assis
24052710c1
Fix Makefile to create nuttx.bin instead nuttx.elf.bin when EXEEXT is defined
2017-02-10 07:00:13 -06:00
Gregory Nutt
47a5389c43
Merged in david_s5/nuttx-7/david_s5/minor-typos-1486681097354 (pull request #208 )
...
Minor typos
Approved-by: Gregory Nutt
2017-02-09 23:21:20 +00:00
Gregory Nutt
97c5421c0c
tools/mkconfig.c: Purely cosmetic update.
2017-02-09 17:02:19 -06:00
David Sidrane
6295d571ce
Minor typos
2017-02-09 22:58:37 +00:00
Gregory Nutt
9946969c6c
libc/stdio/Make.defs: the no-flush stubs now need to be built unconditionally
2017-02-09 16:37:17 -06:00
Gregory Nutt
d35676860b
tools/mkconfig.c: Purely cosmetic update.
2017-02-09 16:29:01 -06:00
Gregory Nutt
0b4a9539be
tools/mkconfig.c: Add logic to keep all of the buffering options in sync.
2017-02-09 16:17:54 -06:00
Gregory Nutt
98d072a1f7
Apparently setvbuf() size can be nonzero with _IONBF. That makes no sense, but is necessary if setbuf() is to work as it is defined at OpenGroup.org.
2017-02-09 15:39:33 -06:00
Gregory Nutt
ffbf6bc9a6
libc/misc/fs_filesem.c references struct file_struct. Should include nuttx/fs/fs.h
2017-02-09 15:16:36 -06:00
Gregory Nutt
c19aa094e1
C Library: Add setbuf() which is a trivial wrapper around setvbuf().
2017-02-09 15:04:53 -06:00
Gregory Nutt
488a89e67e
Merged in david_s5/nuttx-6/david_s5/typo-up_exitc-edited-online-with-bitbuck-1486672675169 (pull request #207 )
...
Typo up_exit.c edited online with Bitbucket
Approved-by: Gregory Nutt
2017-02-09 20:39:02 +00:00
David Sidrane
a907bbc5d3
Typo up_exit.c edited online with Bitbucket
2017-02-09 20:38:15 +00:00
Gregory Nutt
3329a534f7
Remove spurious blank line.
2017-02-09 13:06:42 -06:00
Gregory Nutt
c55d8f15a1
Merged in david_s5/nuttx/upstream_bkp_fix (pull request #206 )
...
STM32 & STM32F7 Fixes the bkp reference counter issue
Approved-by: Gregory Nutt
2017-02-09 19:03:04 +00:00
Gregory Nutt
085dcf92e3
Update Coding Standard and some Kconfig comments.
2017-02-09 12:57:44 -06:00
David Sidrane
550d259a28
STM32F7: Fixes the bkp reference counter issue
2017-02-09 08:39:51 -10:00
David Sidrane
169b3982a2
STM32: Fixes the bkp reference counter issue
2017-02-09 08:39:51 -10:00
Gregory Nutt
a292da29d0
Costmetic changes from review of last PR.
2017-02-09 08:39:31 -10:00
David Sidrane
7262a788c4
Better granualarity and erro checking of the board's MCG settings
...
Allow for complete MCG_C2 definition from the boart.h file
Moved #ifdef out of code by setting default values for
Allow for individule bit setting in MCG_C2 for
BOARD_EXTCLOCK_MCG_C2
BOARD_MCG_C2_FCFTRIM
BOARD_MCG_C2_LOCRE0
Added range and sanity checking
2017-02-09 08:39:31 -10:00
David Sidrane
a0e7c2e2ae
Added MCG settings that are defiend on the K64 Soc
...
Added BOARD_MCG_C2_FCFTRIM and BOARD_MCG_C2_LOCRE0 to
configure the MCG_C2 register
cleanup of some comments
2017-02-09 08:39:31 -10:00
David Sidrane
147de588d8
Fixes illdefined BOARD_FR_DIV with BOARD_FRDIV from MCG
...
Original BOARD_FR_DIV was never used - that is a good thing because
the value ws definec shifted and the code also shifited it.
2017-02-09 08:39:31 -10:00
David Sidrane
0e687121e5
arch/arm/include/kinetis/kinetis_mcg.h
2017-02-09 08:39:31 -10:00
David Sidrane
b2deadd569
Support the Indexed name LOCK->LOCK0
2017-02-09 08:39:30 -10:00
David Sidrane
eee029eec1
MCG defines are based on the MCG feature configuration
...
We define the bits as a common set of names. This means that
an index may be added to a name i.e. LOCK is LOCK0 as that is
the superset name.
2017-02-09 08:39:30 -10:00
David Sidrane
ab7b72f2e8
Kinetis chip Adding K66 and inlcuding MCG versioning
...
This includes arch/arm/include/kinetis/kinetis_mcg.h
to bring in the MCG versioning and defines the KINETIS_K66
family for the added SoCs:
--------------- ------- --- ------- ------- ------ ------ ------ -----
PART NUMBER CPU PIN PACKAGE TOTAL PROGRAM EEPROM SRAM GPIO
FREQ CNT FLASH FLASH
--------------- ------- --- ------- ------- ------ ------ ------ -----
MK66FN2M0VMD18 180 MHz 144 MAPBGA 2 MB — — KB 260 KB 100
MK66FX1M0VMD18 180 MHz 144 MAPBGA 1.25 MB 1 MB 4 KB 256 KB 100
MK66FN2M0VLQ18 180 MHz 144 LQFP 2 MB — — KB 260 KB 100
MK66FX1M0VLQ18 180 MHz 144 LQFP 1.25 MB 1 MB 4 KB 256 KB 100
2017-02-09 08:39:30 -10:00
David Sidrane
9bbd98580b
Created a kinetis MCG versioning scheme pulled in by Kinetis chip.h
...
The motvations is to version the IP blocks of the Kinetis
K series family of parts.
This added versioning and configuration features for the
Kinetis MCG IP block.
It is envisioned that in the long term as a chip is added.
The author of the new chip definitions will either find
the exact configuration in an existing chip define and
add the new chip to it Or add the MCG feature configuration
#defines to the chip ifdef list in
arch/arm/include/kinetis/kinetis_mcg.h In either case the
author should mark it as "Verified to Document Number:"
taken from the reference manual.
The version KINETIS_MCG_VERSION_UKN has been applied to
most all the SoCs in the kinetis arch prior to this commit.
The exceptions are the CONFIG_ARCH_CHIP_MK60FN1M0VLQ12,
All K64 and K66 which not have Verified MCG configurations.
2017-02-09 08:39:30 -10:00
David Sidrane
6199d1801e
Add K66 memory map
2017-02-09 08:39:30 -10:00
David Sidrane
db65734820
Add Kinetis K66 to Kinetis Kconfig
2017-02-09 08:39:30 -10:00
David Sidrane
bdd99f5aa1
Removed ws at EOL
2017-02-09 08:39:30 -10:00
Alan Carvalho de Assis
e6e72bda02
Bambino-200E: Use .elf extension on all executables.
2017-02-09 11:37:52 -06:00
Marc Rechté
d501ffc563
Kinetis SDHC driver fixes.
2017-02-09 11:28:30 -06:00
Alan Carvalho de Assis
248d5d3185
MMC/SD SDIO: Some drivers need to start DMA before sending CMD24 and some AFTER
2017-02-09 11:13:05 -06:00