Commit Graph

577 Commits

Author SHA1 Message Date
Travis Geiselbrecht
7c412c38d7 [lib][heap] move dlmalloc implementation to external/ 2016-02-20 11:31:51 -08:00
Travis Geiselbrecht
5e14990dbd [lib][libm] move to external/ 2016-02-20 11:31:51 -08:00
Travis Geiselbrecht
c5c59a4897 [lib][aes] move to external/ 2016-02-20 11:31:51 -08:00
Travis Geiselbrecht
e514030336 [lib][mincrypt] move to external/ 2016-02-20 11:31:51 -08:00
Travis Geiselbrecht
8c5d18280d [lib][miniz] move into external/ 2016-02-20 11:31:51 -08:00
Travis Geiselbrecht
cd3a87b962 [lib][lwip] move lwip into external/ 2016-02-20 11:31:51 -08:00
Travis Geiselbrecht
8fa95015b8 [lib][fdt] move to external/ 2016-02-20 11:31:50 -08:00
Travis Geiselbrecht
ed19c37227 [c++] add some required arm symbols for c++ 2016-02-19 12:26:28 -08:00
Travis Geiselbrecht
ae28c92fad [lib][ffs] delete this old file system code 2016-02-17 19:14:38 -08:00
Travis Geiselbrecht
4da1b80dbd [libc][include] move most of the top level includes into lib/libc/include
The files that are generally considered to be libc should live within
the library's namespace.
2016-02-16 15:58:22 -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
Gurjant Kalsi
52f4728c44 [magic][constants] Convert all of LK's multichar character kernel magic constants to hex. 2016-02-09 15:02:05 -08:00
Gurjant Kalsi
5e5f210566 [magic][constants] Convert LK's multichar character constants to hex.
This should help with some of the warnings in the SoD build.
2016-02-09 14:43:36 -08:00
David Deephanphongs
20289ad766 [lib][unittest] Shrink string usage in macros.
The various EXPECT_EQ, etc., macros used concatenation to build
their strings.  This creates a full error string for each
EXPECT_* test in a unittest.  Instead, use string substitution
(%s) so that the common portions of the strings can be
combined.

Change-Id: I6d8d39027dc1b6462913bdab2e47c567bf99350f
2016-02-09 10:31:10 -08:00
Gurjant Kalsi
5ab14cbc3a [lib][io][gfxconsole] Update include in gfx console to match new lib/io path 2016-02-08 12:30:24 -08:00
Travis Geiselbrecht
da211521b1 [lib][io] move all the io stuff into lib/io 2016-02-07 16:05:46 -08:00
Travis Geiselbrecht
8d199a5db5 [lib][libc] move the io hooks into a separate struct that the handle points to 2016-02-07 16:05:46 -08:00
Travis Geiselbrecht
c75ca2aa09 [lib][libc] move the io function dispatch into a new handle out of FILE *
Create io_handle_t and have the FILE * simply point to it. This should
help decouple the libc implementation from how the console actually works.
2016-02-07 16:05:46 -08:00
Travis Geiselbrecht
a7496980c0 [lib][stdio] fix the build after -fbuiltin and io changes 2016-02-07 16:05:46 -08:00
Travis Geiselbrecht
244ed17c40 [lib][debug] have the panic shell return a pointer, disable the shell if unimplemented 2016-02-07 16:05:46 -08:00
Travis Geiselbrecht
15dc85c218 [lib][libc] rearrange the io stack a bit and move code out of lib/debug into libc
Some of the output routines were a bit convoluted, so move the stack of code
dealing with outputting to the console into a new file in libc, io.c.
2016-02-07 16:05:46 -08:00
Travis Geiselbrecht
343a24bcab [lib][libc] simplify the stdio call stack a bit and output via a single write call 2016-02-07 16:05:11 -08:00
Travis Geiselbrecht
661cabe9a9 [lib][debug] reformat with space indents 2016-02-07 16:05:11 -08:00
Gurjant Kalsi
a6e3aeff12 [fs][spifs][qspi] Reduce stack usage by 12% of the total default stack size for some critical call paths through the spifs filesystem layer. 2016-02-07 11:28:39 -08:00
Gurjant Kalsi
1cca765aa4 [qspi][stm32f7] Support exiting linear mode for STM32F7 QSPI Part
Support the BIO_IOCTL_PUT_MEM_MAP ioctl. Also add tests for
entering and exiting linear mode in the bio tests.
2016-02-03 14:07:37 -08:00
Gurjant Kalsi
177a43b0b1 [dartuino][spifs] Remove target specific fsconfig header.
fsconfig header didn't really make sense since not every target
implements it.
2016-02-01 18:00:53 -08:00
Gurjant Kalsi
182d574248 [fs][cdecls] Wrap FS API with cdelcs 2016-01-29 17:32:52 -08:00
nqbit
dd8dd061b8 [arch][arm] changes to support cortex-m0plus architecture 2016-01-18 11:07:31 -08:00
Eric Holland
3d7e1f4968 [arch][arm] changes to support cortex-m0 architecture 2016-01-17 17:35:06 -08:00
Brian Swetland
4f5b675094 [lib][debug] fix build error when dprintf() is disabled 2016-01-14 15:21:19 -08:00
Gurjant Kalsi
fd223ac633 [spifs] Module deps accidentally listed under module srcs. 2015-12-16 16:49:48 -08:00
Gurjant Kalsi
7b453164dd [qemu][m4][gfx][display] Get the VNC based LCD working on the qemu-m4 port. 2015-12-16 16:05:36 -08:00
Travis Geiselbrecht
19a0790769 [lib][tga] reformat the tga decoder library 2015-12-14 15:29:01 -08:00
Travis Geiselbrecht
a100ff384f [lib][gfx] add MONO -> MONO blitting support 2015-12-14 15:20:25 -08:00
Gurjant Kalsi
826be8b49d [dartuino][lcd][gfx] Added support for colour lcd, refactored sharp lcd code 2015-12-14 13:24:34 -08:00
Gurjant Kalsi
18200dd101 [fs][spifs] ioctl for getting memmap addr of a file 2015-12-11 17:01:04 -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
Gurjant Kalsi
87860fd2bd [gfx][colour] Separate surface manipulation functions from colour translation functions 2015-12-08 10:57:59 -08:00
Gurjant Kalsi
5e23cdebaf [gfx][dartuino][lcd] Get the sharp memory lcd working on the dartuino 2015-12-07 12:47:32 -08:00
Carlos Pizano
cf67ac37c2 [lib][tftp] add CDECL to header.
BUG=
R=travisg@google.com

Review URL: https://codereview.chromium.org/1490333006 .
2015-12-03 14:19:31 -08:00
Travis Geiselbrecht
f5ff5fcfd3 WIP: mips32 on qemu 2015-11-30 18:57:37 -08:00
Travis Geiselbrecht
4ab14424bd [cppcheck] clean up a few suggestions from cppcheck 2015-11-24 15:08:38 -08:00
Travis Geiselbrecht
a2f02251e5 [lib][libc] mass reformat with space indents
Ran files through ./script/codestyle.space
2015-11-17 14:22:03 -08:00
Travis Geiselbrecht
527c0dbc54 [merge] merge of spifs work by gkalsi 2015-11-17 13:11:27 -08:00
Gurjant Kalsi
3ef46ccf8c [spifs][fs] Bump dirents when files that they point to are deleted. 2015-11-16 18:02:13 -08:00
Gurjant Kalsi
e98e1657f4 [spifs][fs] Trivial changes from previous PR comments. 2015-11-14 18:21:22 -08:00
Erik Corry
ddbb67ad25 [lib][cmpctmalloc] Tweak bucket sizes to optimize power-of-2 allocs. Fix and test heap_trim better 2015-11-13 12:48:12 -08:00
Gurjant Kalsi
e5edfcd3c2 [fs][spifs][test] Added two more tests to test more codepaths. 2015-11-12 15:54:59 -08:00