250 Commits

Author SHA1 Message Date
Travis Geiselbrecht
bf1d680063 [app][benchmark] slight cleanup 2015-03-10 16:42:53 -07:00
Travis Geiselbrecht
53e3d98e4d [app][tests] add quick spinlock test 2015-03-10 16:42:53 -07:00
Travis Geiselbrecht
2035d88315 [app][tests] add some test cases for thread_detach/thread_join behavior 2015-03-10 16:37:08 -07:00
Travis Geiselbrecht
d449902adc [app][lkboot] restructure to add booting out of flash
-Now lkboot will start a network server (if networking is enabled)
    and wait for a predetermined amount of time (5 seconds currently).
    If after that time no one has talked to it, it will try to boot
    an image out of flash.
-If no networking, then directly boot an image out of flash immediately.

TODO: configure timeout, add 'autoboot' command to lkboot to let the host
short circuit the wait.
2015-03-03 14:59:27 -08:00
Travis Geiselbrecht
9dafcb855d [app][zynq-common] support loading fpga image out of flash
If the bootloader started the app image out of flash and has passed
the address to it in the bootargs, then load the fpga image out of
flash.
2015-03-03 14:55:40 -08:00
Travis Geiselbrecht
ac71743a45 [zynq-common] if loaded from bootimage in ram, program fpga
Use the bootargs and bootimage code to find the image we were
booted from. If found and the fpga image checks out, program it.
2014-12-16 17:29:44 -08:00
Travis Geiselbrecht
295d26c907 [app][lkboot] assume fpga images have already been endian swapped
Remove endian swap code on the receiving side.
2014-12-11 20:01:11 -08:00
Travis Geiselbrecht
0b8d9befda [app][lkboot] first stab at trying to pass arguments to binaries loaded with lkboot 2014-12-11 19:58:46 -08:00
Shreyas Nagaraj
2ff04720f7 [arch][x86-64] MMU fixes - arch_mmu_query, page walking, kernel ld script 2014-12-11 19:22:37 -08:00
Shreyas Nagaraj
e2a45c32b7 [arch][x86_64] more x86-64 MMU changes 2014-12-11 19:22:37 -08:00
Travis Geiselbrecht
ee9d2927ad [arm] add ability to pass and generically read up to 4 boot args from whoever loaded lk
-Extend arch_chain_load() to pass 4 args
2014-11-21 15:50:18 -08:00
Travis Geiselbrecht
2a7913e43e [app][lkboot] add code to create/remove additional partitions, try to boot bootimages if passed 2014-11-21 15:50:18 -08:00
Travis Geiselbrecht
29a3eb393e [libm] add ARM VFP versions of sqrt() routines
-VFP has a vsqrt instruction. Use it.
2014-11-18 10:43:40 -08:00
Travis Geiselbrecht
f75fe0b81b [app][tests] add new memory test
-Use the VMM to allocate a large chunk of uncached physical memory
-if no VMM, allocate from heap
-Do a simple own address test then a pattern and moving inversion test
2014-10-23 14:41:44 -07:00
Travis Geiselbrecht
fde8a93302 [app][inetsrv] add an echo server (port 7) 2014-10-19 02:52:00 -07:00
Travis Geiselbrecht
9b7b6cdbf3 [app][tests] beef up the cache benchmark tests a little bit 2014-10-19 01:14:43 -07:00
Travis Geiselbrecht
3f7e6e5b9d [app][clock_tests] handle having current_time() divides round properly
This will probably break implementations that truncate round.
2014-09-29 16:37:54 -07:00
Travis Geiselbrecht
227c14cb6b [lib][libc] fix floating point printf for negatives 2014-09-09 13:37:30 -07:00
Chris Anderson
9c512e3bab [zynq] Move zybo-common to zynq-common 2014-08-27 11:48:18 -07:00
Travis Geiselbrecht
bba71af9ed [kernel] add real time flag for threads
Threads marked as real time do not have the preemption timer run against
them and will continue to run until they voluntarily yield or are
preempted by a higher priority thread from irq context.
2014-08-25 21:41:08 -07:00
Travis Geiselbrecht
30912e2f26 [app][tests] tests for floating point printf 2014-08-22 00:10:39 -07:00
Travis Geiselbrecht
afead3d125 [app][bench] add some quick n dirty sin/cos/sqrt benchmarks if libm is built 2014-08-20 17:42:06 -07:00
Travis Geiselbrecht
30add04420 [app][lkboot] align the boot buffer on 16MB boundary virtually and physically 2014-08-18 14:50:03 -07:00
Travis Geiselbrecht
3856c37434 [platform][zybo] turn off some of the boot spew 2014-08-18 14:50:03 -07:00
Brian Swetland
82fa2c8d7e [app][lkboot] complete boot command in a thread
so we can allow the lkboot transaction to complete and the
host tool doesn't hang waiting for an ack
2014-08-13 15:16:05 -07:00
Travis Geiselbrecht
462e1475e1 [app][lkboot] remove console from the required module list 2014-08-12 16:21:27 -07:00
Travis Geiselbrecht
43e914f453 [app][lkboot] add boot command 2014-08-12 16:21:27 -07:00
Brian Swetland
e3f3a428a2 [app][lkboot] fix a dumb bug 2014-08-08 19:03:55 -07:00
Brian Swetland
fc898a85d6 [app][lkboot] fix lkb_write() for len 65536 2014-08-08 16:03:49 -07:00
Brian Swetland
47c2ae27e3 [app][lkboot] provide a means to register additional commands 2014-08-08 15:58:13 -07:00
Brian Swetland
df26d050b9 [target][zybo] factor shared code into an app
Some but not all zybo based projects will want to share some higher
level initialization code, so move that to app/zybo-common and make
the zybo target a bit more bare-bones.
2014-08-08 15:20:30 -07:00
Travis Geiselbrecht
255d4089b5 [app][inetsrv] print some transfer speed statistics 2014-08-07 15:20:34 -07:00
Travis Geiselbrecht
6586f96874 [app][inetsrv] make sure the chargen generator buffers at a boundary of the sequence 2014-08-07 15:09:31 -07:00
Brian Swetland
312e5e146a [lkboot] reboot support 2014-08-06 16:09:55 -07:00
Travis Geiselbrecht
d3419db6f0 [warnings] knock out a few warnings and add a few vim tags 2014-08-06 15:03:32 -07:00
Travis Geiselbrecht
45b8467ff0 [lib][minip] change tcp socket handles to an opaque tcp_socket_t struct 2014-08-06 15:01:28 -07:00
Brian Swetland
b8bd9b9edb [lkboot] add "getsysparam", support data return from server 2014-08-06 10:34:09 -07:00
Brian Swetland
5b2e6584f8 [app][lkboot] network bootloader server 2014-08-05 18:19:08 -07:00
Travis Geiselbrecht
f57575dfd7 [app][inetsrv] increase discard buffer size for efficiency 2014-08-04 19:11:34 -07:00
Travis Geiselbrecht
97c4b96e5d [app][inetsrv] add a few basic internet servers (chargen, discard) 2014-08-04 17:50:55 -07:00
Travis Geiselbrecht
e846e9e32e [app][stringtests] bump the buffer size to 2MB, to remove L2 caching effects 2014-08-02 15:49:22 -07:00
Travis Geiselbrecht
c66805275d [libc] remove warning in memset.c when compiled on 32bit machines 2014-08-02 15:49:22 -07:00
Travis Geiselbrecht
3f5de5d833 [app][stringtests] clean up the old asm files, make sure modern memset/memcopy works
Add reference C implementation to test/benchmark against.
2014-07-30 20:11:10 -07:00
Chris Anderson
5bc6f97090 [kernel] Add resched option to sem_post 2014-07-24 17:10:02 -07:00
Travis Geiselbrecht
8c6807188c [app][aboot] remove some old Google code that hasn't been used in a while
aboot and its support libraries are still developed on a fork of the
lk project by QCT.
2014-07-18 16:24:56 -07:00
Travis Geiselbrecht
4d011b03b1 [arch][arm] fix floating point test code on thumb2 only devices 2014-07-14 17:33:07 -07:00
Travis Geiselbrecht
b0c5c4939d [app][tests] add tests for floating point 2014-06-11 15:01:49 -07:00
Travis Geiselbrecht
f18660a2f4 [app][tests] add quick n' dirty cache test routine 2014-06-03 21:18:09 -07:00
Travis Geiselbrecht
94920d35d1 [kernel] remove current_thread global, add get|set_current_thread() accessor
-Up to the architecture to implement the getter|setter
2014-05-03 23:58:44 -07:00
Travis Geiselbrecht
7e8770cf07 [app][fibo] print total time taken to run test 2014-05-01 19:06:57 -07:00