Commit Graph

4701 Commits

Author SHA1 Message Date
Gregory Nutt
48f29ce348 More vfork(): If we get to vfork() via system call, then we need to clone some system call information so that the return form the cloned system call works correctly 2014-09-29 10:59:15 -06:00
Gregory Nutt
2b0c657b1f Fix vfork(). Now that arguments are kept on the stack, the way that arguments are passed from parent to child in vfork() must change. This bug has always been present, but was not visible with the old strdup() way of passing arguments 2014-09-29 10:45:44 -06:00
Gregory Nutt
d0b0e089a7 Move fs/fs.h to fs/inode/inode.h and some to fs/driver/driver.h 2014-09-29 07:14:38 -06:00
Gregory Nutt
ee7e958b79 Rename fs/fs_internal.h to fs/fs.h 2014-09-28 09:13:56 -06:00
Gregory Nutt
ba3ecd67ac A little more clean-up of poll() error handling 2014-09-26 08:25:00 -06:00
Gregory Nutt
083e808ad8 This completes the implementation of shared memory support 2014-09-24 09:27:17 -06:00
Gregory Nutt
7e9c8b5926 STM32 CAN correction suggested by Max Holtzberg 2014-09-24 08:23:05 -06:00
Gregory Nutt
327628ca19 Build support for platform-specific shared memory logic. Not logic yet in place 2014-09-24 07:39:06 -06:00
Gregory Nutt
74bb07eeb4 Build support for platform-specific shared memory logic. Not logic yet in place 2014-09-24 07:38:11 -06:00
Gregory Nutt
238e18cc0a Move include/nuttx/mm.h to include/nuttx/mm/mm.h 2014-09-24 07:29:09 -06:00
Gregory Nutt
eb5e1616f4 Move include/nuttx/gran.h to include/nuttx/mm/gran.h 2014-09-24 06:55:26 -06:00
Gregory Nutt
25b52a111e Cosmetic 2014-09-23 16:03:52 -06:00
Gregory Nutt
a9864bc100 Extend virtual/physical address conversions to include addresses in shared memory. 2014-09-23 16:03:08 -06:00
Gregory Nutt
cce614c67e Fix some inconsistent field name in struct task_group_s: addrenv should be tg_addrenv. 2014-09-23 16:01:44 -06:00
Gregory Nutt
df26163f1f Add logic necessary to handler remapping of shared memory on contex switches 2014-09-23 13:19:30 -06:00
Gregory Nutt
42f0eb7d34 Add shared memory initializatin logic 2014-09-23 08:46:31 -06:00
Gregory Nutt
1c0433bdf4 Add README files and configuration support for the shared memory logic 2014-09-23 07:11:47 -06:00
Gregory Nutt
bc01f422df More NxWM build fixes 2014-09-20 16:47:00 -06:00
Gregory Nutt
1ca6adadfa More naming changes to get the stm3240g-eval/nxterm configuration building again 2014-09-20 15:53:28 -06:00
Gregory Nutt
371347b144 Fix missing closing quotation mark 2014-09-19 13:00:42 -06:00
Gregory Nutt
4d73a908e5 Some compiler errors that I added to Ken's code. From Ken Pettit 2014-09-19 10:58:32 -06:00
Gregory Nutt
400d469956 Emulated SPI FLASH driver for the sim target from Ken Pettit 2014-09-19 10:27:18 -06:00
Gregory Nutt
2eef637ca2 SAMA5D4-EK/nsh: WM8904 support enabled; README updated 2014-09-18 14:29:20 -06:00
Gregory Nutt
e94adf8ff4 Ooops... a file that I forgot to add yesterday 2014-09-17 09:52:07 -06:00
Gregory Nutt
52a1f19023 Fixes to avoid some hang conditions using STM32 CAN 2014-09-17 08:35:03 -06:00
Gregory Nutt
e409b64bdc Only SAM4 family has RTTDIS bit in the MR register. SourceForge bug #33 from Fabien Comte 2014-09-17 07:42:12 -06:00
Gregory Nutt
04f75c42cc Add a sharable version of arm_virtpgaddr() 2014-09-16 16:49:44 -06:00
Gregory Nutt
d936f1a918 First round of changes to get the ELF configuration building again 2014-09-16 15:37:05 -06:00
Gregory Nutt
c20907b86c These files were deleted and moved to a different location (see previos commit) 2014-09-16 13:36:51 -06:00
Gregory Nutt
8058de7874 remove tailing blank line 2014-09-16 13:36:14 -06:00
Gregory Nutt
bd6f7c50e8 Move common/up_signal_dispatch.c to armv6-m, armv7-m, and armv7-a. The armv7-a version needs to be different to handle the case where we are dispatch kernel mode signals when running under a user mode group 2014-09-16 13:35:29 -06:00
Gregory Nutt
8c3fd5a162 Correct stack handling is signal deliver to user processes 2014-09-16 13:33:13 -06:00
Gregory Nutt
ebc10e0237 Move some share-able logic from sama5/sam_pgalloc.c to armv7-a/arm_physpgaddr.c 2014-09-16 13:31:48 -06:00
Gregory Nutt
4a04ea48e4 Move some share-able logic from sama5/sam_pgalloc.c to armv7-a/arm_physpgaddr.c 2014-09-16 13:31:24 -06:00
Gregory Nutt
9879f47bbb Move some share-able logic from sama5/sam_pgalloc.c to armv7-a/arm_physpgaddr.c 2014-09-16 13:29:43 -06:00
Gregory Nutt
4f1ca4cbb7 Partial fix to an cache cleaning problem 2014-09-15 16:04:42 -06:00
Gregory Nutt
35a282bc30 Fix an error in a debug statement 2014-09-15 15:15:57 -06:00
Gregory Nutt
e2952e4088 Eliminate a bug introduced in last checking 2014-09-15 15:10:50 -06:00
Gregory Nutt
d14d3b29bb ARMv7-A: Improvements to assertion output for kernel mode 2014-09-15 15:03:55 -06:00
Gregory Nutt
9aae0adffa If we are configured to use a kernel stack while in SYSCALL handling, then we need to switch back to the user stack to deliver a signal 2014-09-15 11:38:48 -06:00
Gregory Nutt
949cc1b20c Fix a typo in system call when fetching parameter from the stack: regs[REG_PC]+4 is the address, not regs[REG_PC+4] 2014-09-15 10:55:10 -06:00
Gregory Nutt
946b916f69 Initial integration of kernel stack (does not work) 2014-09-14 11:19:34 -06:00
Gregory Nutt
16ddffc941 Add the initial implementation of the process kernel stack logic. Not yet integrated into the main OS logic nor tested. 2014-09-14 09:53:54 -06:00
Gregory Nutt
ffff51c1b1 Rename everything associated with the dynamic process stack to ustack to make room in the name space for a kstack 2014-09-14 09:10:09 -06:00
Gregory Nutt
9dbf99f38b Update README, TODO, and make some unfinished configuration options dependent on EXPERIMENTAL 2014-09-13 15:45:26 -06:00
Gregory Nutt
d956936535 Add logic need to manage a virtualized stack. Not yet incorporated into base OS logic. 2014-09-13 13:45:35 -06:00
Gregory Nutt
5d4f336b1f Move static helper routines from arm_addrenv.c and may them global so that they can be shared both forthcoming stack address environment logic. 2014-09-13 13:17:44 -06:00
Gregory Nutt
f4bcb27962 Add a configuration option for dynamic stack management 2014-09-13 12:25:32 -06:00
Gregory Nutt
fe48417a96 Comsetic updates to comments, debug output 2014-09-12 10:31:58 -06:00
Gregory Nutt
fba35f0c41 ARMv7-A: Modify up_fullcontextrestore() for CONFIG_BUILD_KERNEL. It changed CPSR while in kernel. That will crash is the new CPSR is user mode while executing in kernel space. Fixed by adding a SYS_context_restore system call. There is an alternative, simpler modification to up_fullcontextrestore() that could have been done: It might have been possible to use the SPSR instead of the CPRSR and then do an exception return from up_fullcontextrestore(). That would be more efficient, but I never tried it. 2014-09-12 08:04:27 -06:00