Commit Graph

66 Commits

Author SHA1 Message Date
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
Travis Geiselbrecht
3b07685da8 [warnings] knock out some 64bit warnings 2014-03-11 21:04:55 -07:00
Travis Geiselbrecht
33b94d9b97 [lib][libc][arm-m] add new arm-m optimized memcpy and memset routines 2014-03-09 03:37:18 -07:00
Travis Geiselbrecht
13db848328 [app][stringtests] add new assembly implementation of memcpy and memset for arm-m
Cortex-m devices like data to be moved in units of 64bit, but must be aligned.
Otherwise, moving a 32bit word at a time is fine at any alignment.
2014-03-09 01:51:58 -08:00
Macpaul Lin
bcbd41b89e [aboot] add a method for stopping fastboot when usb is unplugged during RX.
Add a signal method to stop fastboot thread when usb cable is plugging out
durning firmware download.

Signed-off-by: Macpaul Lin <macpaul@gmail.com>
Cc: Amol Jadi <amoljadi@codeaurora.org>
Cc: Casey Piper <cpiper@codeaurora.org>
Cc: Travis Geiselbrecht <geist@foobox.com>
2013-10-23 18:07:15 +08:00
Travis Geiselbrecht
c730c5a860 [app][usbtest] add default usb test app
Continually tries to send and receive 4K usb packets.
2013-10-20 16:04:18 -07:00
Dima Zavin
36c7735533 [libc][stdio] cleanup printf definition and clients
Move implementation to stdio.c to sit next to the other
stdio definitions that use the debug output functions. Keep
the declaration of it, though, in printf.h to sit next to
sprintf, etc.

Don't include printf.h directly in other places, rely on stdio.h
to properly pull in these functions.

Change-Id: I357cb04a5c78185b8fde908193b672326c2ee542
Signed-off-by: Dima Zavin <dima@android.com>
2013-08-05 10:04:29 -07:00
Dima Zavin
e8a9b4b7a4 [libc] move tracing out of debug into separate trace.h
Change-Id: I7476fc17b587a0ea2a42cbe3d49b72063e4c5dc8
Signed-off-by: Dima Zavin <dima@android.com>
2013-08-05 10:04:29 -07:00
Travis Geiselbrecht
2ae06216b1 [libc] fix printf edge case with signed leading digits
Fixes specific case as in printf("%03d\n", -2), which
would put the sign digit after the leading zeros.

Make sure the sign bits are before any leading zeros or spaces.

Add test case for this.
2013-07-31 11:16:01 -07:00
Corey Tabaka
561c6c2df6 [app][pcitests] Add class code to bus dump. 2013-07-18 02:30:40 -07:00
Travis Geiselbrecht
7643bc28c3 [make] add -Wstrict-prototypes and clean up old C style prototypes
replace all built versions of foo(); with foo(void);
2013-06-19 14:21:53 -07:00
Travis Geiselbrecht
e002c58b59 [make] rename INCLUDES -> GLOBAL_INCLUDES
To be more consistent, rename make variable INCLUDES to GLOBAL_INCLUDES.
Also remove the need to put -I in front of each field, the make system
will do that for you.

To fix your module makefiles:
-Change INCLUDES -> GLOBAL_INCLUDES
-Remove -I prefix
2013-06-07 22:26:06 -07:00
Travis Geiselbrecht
5e87468584 [app][thread_tests] add a few tests for the static initializers 2013-05-25 11:35:07 -07:00
Travis Geiselbrecht
2760f146f5 [app][tests] disable printf formatting warnings for printf test 2013-05-24 20:52:16 -07:00
Travis Geiselbrecht
7e9fa038c3 [libc] fixup users of newly modified stdio routines 2013-05-24 20:51:37 -07:00
Travis Geiselbrecht
ec85566712 [app][tests] add more tests to clock_tests 2013-03-09 17:04:14 -08:00
Travis Geiselbrecht
0fc1b9475d [app][tests] switch the thread tests to the new thread_create mechanism 2012-12-22 15:53:04 -08:00
Travis Geiselbrecht
058e24354f [app] detach the app threads 2012-12-22 15:53:04 -08:00
Travis Geiselbrecht
935e190f9b [lib][libc][printf] add ' ', t, j specifier, remove U and D 2012-12-16 13:45:31 -08:00
Travis Geiselbrecht
fa91cf8926 [arch][x86] fix build with arm asm in some benchmark code 2012-11-11 14:42:03 -08:00
Travis Geiselbrecht
30e2d00539 [app][test] some benchmarks and a quick clock tester 2012-11-02 12:21:49 -07:00
Travis Geiselbrecht
a6c70ee683 [app] run all of app/ through astyle 2012-10-31 21:49:13 -07:00
Travis Geiselbrecht
39705e6b98 [app][tests] knock out a few warnings 2012-10-30 21:04:58 -07:00
Chris Anderson
e465a4f0c5 [kernel] Add semaphores and tests 2012-10-16 16:05:09 -07:00
Travis Geiselbrecht
69d8e3c41f [app][tests] remove most of the printf warnings
GCC doesn't understand %D and %U and still warns about that.
2012-10-13 21:37:26 -07:00
Travis Geiselbrecht
1262105ab9 [time] rename {big}time_t -> lk_{big}time_t
-This avoids a collision with posix time_t and makes gcc complain
less about printf format mismatches.
2012-10-06 11:22:15 -07:00
Travis Geiselbrecht
97cfd0bfa4 [make] update all of the rules.mk to use the new module system 2012-08-31 15:52:24 -07:00
Travis Geiselbrecht
678192d94d [app][tests] add a preemption test
-run 5 threads in parallel, each counting a fixed amount.
If preemption is working, they should all complete in roughly the same time.
2012-06-27 20:20:07 -07:00
Travis Geiselbrecht
c32135b7e5 [app] add feature to set the stack size in the static descriptor 2012-06-27 19:40:42 -07:00
Travis Geiselbrecht
96b1f27f4a [tests][printf] add a simple test to make sure snprintf colors within the lines 2012-06-16 16:39:43 -07:00
Travis Geiselbrecht
70d2ffb9e8 [app][tests] spiff up the thread tests a bit 2012-05-30 20:26:18 -07:00
Travis Geiselbrecht
2d23d7f9e3 [arch] factor out the debug_cycle_count to arch specific code 2009-06-28 12:48:18 -07:00
Corey Tabaka
7760c7782a Fixed typo in pci dump message. 2009-04-24 11:14:38 -07:00
Corey Tabaka
a94761f4bf Minor cleanup and a hack to idle the cpu in getc loops. 2009-04-24 11:14:38 -07:00
Corey Tabaka
f463e26b40 Added support for PCI config space read/write via PCI BIOS. Added some PCI commands to query/modify config space and enum devices. 2009-04-24 11:14:38 -07:00