Commit Graph

188 Commits

Author SHA1 Message Date
Gurjant Kalsi
05c646a39a [ndebug] Setup NDebug endpoints and create a bidirectional serial pipe over USB. 2016-04-18 12:07:34 -07:00
Travis Geiselbrecht
2423845505 [merge] merge in cortex-m fpu support changes 2016-03-30 20:28:18 -07:00
Gurjant Kalsi
1fa7f2c977 [usb] Allow client code to specify USB endpoint type. 2016-03-28 21:21:21 -07:00
Travis Geiselbrecht
f92aad2622 [merge] merge master into the cortex-m fpu working branch 2016-03-28 19:09:40 -07:00
Gurjant Kalsi
7dd294a62d [dartuino][bootloader] Changes as per code review. 2016-03-28 12:04:08 -07:00
Gurjant Kalsi
b28f754f78 [dartuino][bootloader] Add some more tracing to fsboot, look for proper system image name. 2016-03-09 16:08:27 -08:00
Gurjant Kalsi
fe0ef0c255 [dartuino][bootloader] Add Filesystem Boot. 2016-03-09 15:23:44 -08:00
Gurjant Kalsi
a8be9611cc [dartuino][bootloader] Get Bootloader USB working. 2016-03-09 15:23:25 -08:00
Gurjant Kalsi
42e76b1fc7 [ports] Add an API to dynamically add/remove ports from a port group. 2016-02-23 14:23:25 -08:00
Travis Geiselbrecht
a4ca0a6e00 [vmm] move most users of arch_mmu_query directly to vaddr_to_paddr() 2016-02-14 12:45:53 -08:00
Travis Geiselbrecht
d569c090ea [vim] remove vim expandtab comments on most of the files 2016-02-14 12:32:07 -08:00
Travis Geiselbrecht
2eb32a4369 [style] mass reformat all the non external code to 4 space indents
Ran everything through scripts/codestyle.space, which uses astyle
to generally follow K&R style.

Biggest non whitespace change is pulling brackets down on function
declarations, which I'm pretty ambivalent about, but astyle insists
on taking a stance
2016-02-14 12:24:01 -08:00
Travis Geiselbrecht
a7496980c0 [lib][stdio] fix the build after -fbuiltin and io changes 2016-02-07 16:05:46 -08:00
Eric Holland
3d7e1f4968 [arch][arm] changes to support cortex-m0 architecture 2016-01-17 17:35:06 -08:00
Brian Swetland
20513a9901 [app][mdebug] add JTAG support
- initial gpio implementation
- runs at about 6MHz, not optimized or adjustable yet
2016-01-11 15:38:48 -08:00
Brian Swetland
8fbbaccb2b [app][mdebug] update protocol for JTAG transactions 2016-01-11 15:38:48 -08:00
Travis Geiselbrecht
75a8ce0f63 [merge] merge dartuino sensor development branch 2016-01-05 16:39:00 -08:00
Travis Geiselbrecht
9c74f98fa9 [merge] merge mips development branch
Add support for mips architecture.
Currently supports particular generic target on qemu.
2015-12-08 14:23:38 -08:00
Travis Geiselbrecht
720dc32335 [app][tests][clock_test] keep running the test after the first failure 2015-12-02 18:32:28 -08:00
Eric Holland
94e1825854 [accelerometer]added app for interacting with accelerometer from console 2015-12-02 18:13:54 -08:00
Carlos Pizano
c8ec0024da [kernel][port] port group test
A basic port watcher.

BUG=
R=travisg@google.com

Review URL: https://codereview.chromium.org/1478653002 .
2015-12-02 12:32:09 -08:00
Travis Geiselbrecht
4ab14424bd [cppcheck] clean up a few suggestions from cppcheck 2015-11-24 15:08:38 -08:00
Carlos Pizano
614eaf166a [kernel][ports] Add basic ports functionality
Missing mostly more tests, specifically group tests.

BUG=none
R=travisg@google.com

Review URL: https://codereview.chromium.org/1437453002 .
2015-11-20 14:43:27 -08:00
Travis Geiselbrecht
09acdf8afe WIP arm-m fpu 2015-11-11 18:07:07 -08:00
Travis Geiselbrecht
6475660350 WIP checkpoint 2015-11-11 13:22:07 -08:00
Travis Geiselbrecht
420c557c6e WIP fpu bits 2015-11-09 16:30:16 -08:00
Zhu, Bing
b6647f5bef [arch][x86][fpu]Change naming convention for FPU flag
To align with lk/arm flag naming convention, FPU flag
ENABLE_FPU is changed to X86_WITH_FPU

Signed-off-by: Zhu, Bing <bing.zhu@intel.com>
2015-11-09 22:14:11 +08:00
Travis Geiselbrecht
491e47fbc6 [linker] align special sections on native pointer bounary
This fixes a bug in x86-64 where it was trying to default align
input sections on 16 byte boundaries, which was screwing up the
padding between structures.
2015-11-06 12:00:04 -08:00
Travis Geiselbrecht
2c52edce0b [app][tests] set ENABLE_FPU in arch/x86 targets, enable floating point tests 2015-10-27 13:19:07 -07:00
Travis Geiselbrecht
114a350e55 [linker] align all the special sections on 8 byte boundaries, remove x86-64 hack
A bit overkill for 32bit machines, but aligning all the special data structures
on 8 byte boundaries removes any special case for 64bit machines.
2015-10-26 17:01:34 -07:00
Travis Geiselbrecht
0e1ce411ba [make] add ability to set EXTRA_LINKER_SCRIPTS in modules
This allows for individual modules to extend the main linker script,
primarily to add their own sections to interate over.
Remove the main shared_* linker scripts.
2015-10-26 16:47:18 -07:00
Travis Geiselbrecht
35ebee0e40 [merge] branch 'heapswitch'
This picks up the major work of allowing multiple heap implementations
and enable dlmalloc as an alternate heap to the simple existing one
(now called 'miniheap').

Also added a novm page allocator for memory management on systems too small
or missing an mmu to have a vm. Not much more than a simple bitmap allocator
that the heap pulls from. Allows for other heaps and/or users of physical
memory to coexist and span multiple banks of memory.
2015-10-20 16:53:00 -07:00
Travis Geiselbrecht
3b2d7a268b [make] remove the need for a module to manually add $(LOCAL_DIR)/include to the global include path
Pretty much every module in the system was already doing it, so do it
automatically.
2015-10-19 19:07:16 -07:00
Travis Geiselbrecht
38f20ec0a1 [lib][console] add pointer type arg, switch some users to it.
Patch courtesy Erik Corry
2015-10-19 12:49:20 -07:00
Gurjant Kalsi
dc079d7327 [console][uart][shell] Created a crash-time shell and a polling based UART driver to use on panic. 2015-10-12 16:38:51 -07:00
Carlos Pizano
13a1d4f530 [app][loader] Odds and ends
- Fix a bug when doing bounds checking
- Don't run elf if the entrypoint is out of bounds
- Allow to specify the memory slot to download (slot is 512K)
- Default slot for elf is 1, 3 and for data is 0, 2
2015-09-23 12:46:43 -07:00
Travis Geiselbrecht
215b5ed07f [64bit] fix a few more 64bit warnings in newer code 2015-09-20 13:11:51 -07:00
Travis Geiselbrecht
7c62a4923f [app][tests] run float_tests on arm64 as well 2015-09-20 12:13:07 -07:00
Carlos Pizano
0fa831244d [app][loader] Remove spurious parameter to printf(). 2015-09-18 16:40:25 -07:00
Carlos Pizano
3c89961208 [app][loader] Remove uneeded APP entrypoints.
We don't need our own thread.
2015-09-17 19:23:56 -07:00
Carlos Pizano
2809f91084 [app][loader] Load blobs and run elf via tftp into SDRAM
Introduces two commands:
   load any <filename>
   load elf <filename>

Then from another system in the network you can:
   tftp -i <ip-addr> put <filename>

Which for the 'any' case just loads the file into DRAM and for the 'elf'
case it parses the file and if correct it spawns a thread to run the
entrypoint.
2015-09-17 18:21:39 -07:00
Carlos Pizano
d0d5f33bfc [lib][tftp] Move tftp from inetsrv and apply review changes.
From https://codereview.chromium.org/1346853002
2015-09-16 18:23:24 -07:00
Carlos Pizano
ac406077ae [app][inetsrv] add tftp server.
Only allows writting files. Needs a per-file handler to be wired and
provisionally has a test handler wired to "tftp_test.txt" which prints
the crc32 of the complete file pushed via
   tftp -i 192.169.0.xx tftp_test.txt

Some error conditions are yet to be fully handled.
2015-09-16 18:23:24 -07:00
Gurjant Kalsi
a6c8b005db [console] Use STATIC_COMMAND macro for all console command definitions
BUG=

Review URL: https://codereview.chromium.org/1348403002 .
2015-09-16 15:37:33 -07:00
Travis Geiselbrecht
69b092666b [app][tests] fix a warning and reformat a little 2015-09-10 12:11:34 -07:00
Carlos Pizano
14317c67b5 [app][tests] Make chache_tests take an optional address parameter.
Also reduce the last test from 16MB to 8MB, so it does not bomb on
some boards.
2015-09-08 18:24:48 -07:00
Travis Geiselbrecht
9118a4d605 [merge] merge from the stm32f7 branch
Conflicts:
	arch/arm/arm-m/arch.c
2015-08-28 15:03:17 -07:00
Travis Geiselbrecht
093ce2182f [app][inetsrv] allocate all buffers from the heap 2015-08-26 17:54:46 -07:00
Travis Geiselbrecht
dd0045a5c8 [app][tests] allow mem_test to take a base pointer 2015-08-17 11:59:28 -07:00
Brian Swetland
80beda8f90 [app][mdebug] bump fw version 2015-08-11 13:36:30 -07:00