250 Commits

Author SHA1 Message Date
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
Dima Zavin
42168f2e97 [aboot] pass partition table through atags 2009-02-05 16:01:49 -08:00
Dima Zavin
f9faf3a284 [aboot/surf7k/surf8k] pass machtype to aboot from the target with a define 2009-01-29 17:37:22 -08:00
Dima Zavin
b42836029f [aboot] unless cancelled with 'back' key, default to booting from flash 2009-01-29 17:35:05 -08:00
Dima Zavin
214cc64027 [aboot] added fastboot commands for flash (erase, flash, continue) 2009-01-29 17:34:33 -08:00
Brian Swetland
850454462d [aboot] leave icache disabled before starting linux
This is apparently causing issues on some targets.
2009-01-29 17:26:36 -08:00
Brian Swetland
9c4c075b7f [app][aboot] Android Bootloader 2009-01-25 17:38:39 -08:00
Travis Geiselbrecht
668383c506 [app] change the app api to have an init and entry point 2009-01-24 21:45:36 -08:00
Travis Geiselbrecht
3f14b667d3 [app] convert the existing apps to the app modules, add new shell app to
contain the console
2009-01-24 21:21:54 -08:00
Travis Geiselbrecht
6837223d02 [app] add the app module init system 2009-01-24 21:21:08 -08:00
Travis Geiselbrecht
ef67d2b29d remove nettests 2009-01-24 20:17:49 -08:00
Travis Geiselbrecht
39dededa26 move all of the references to app/console to lib/console 2009-01-24 20:12:57 -08:00
Travis Geiselbrecht
0166fb2d09 move app/console to lib/console 2009-01-24 20:12:52 -08:00
Travis Geiselbrecht
eb9460542e [IO] rework dprintf to take a debug level, defined in DEBUGLEVEL
printf at the moment just calls dprintf, but soon will become
a seperate I/O queue.
2008-09-13 15:21:57 -07:00
Travis Geiselbrecht
8d529ef70a [ARM] update atomic ops to use the ldr/strex instructions on armv6+ 2008-09-13 15:13:21 -07:00
Travis Geiselbrecht
5bfddfb66a remove lwip, never really worked anyway 2008-09-01 02:56:25 -07:00
Travis Geiselbrecht
1d0df69964 initial commit of lk (little kernel) project 2008-09-01 02:26:09 -07:00