Commit Graph

17 Commits

Author SHA1 Message Date
Travis Geiselbrecht
df32504748 [kernel] test run sorting some includes
No functional change.
2019-07-13 17:21:00 -07:00
Travis Geiselbrecht
6cb02526b7 [include][console] split lib/console.h into two
TL;DR most uses of lib/console.h -> lk/console_cmd.h

Move the part that lets a piece of code somewhere in the system to
define a console command from the actual lib/console api to start an
instance of the console. Move in almost every place the user of the
console command definition to the new header, lk/console_cmd.h which is
always in the include path.

Also remove most uses of testing for WITH_LIB_CONSOLE since you can
almost always just safely define it and then let the linker remove it.
2019-07-13 16:56:33 -07:00
Travis Geiselbrecht
85a50ea3f4 [kernel][license] try out using a smaller version of the license header
Replace the body of the MIT license with a reference to the LICENSE file
and a URL with the MIT license. Replaces 20 something lines with 3.

No functional change.
2019-06-19 23:28:14 -07:00
Travis Geiselbrecht
d8fa82cb91 [formatting] run everything through codestyle
Almost nothing changes here except moving braces to the same line as the
function declaration. Everything else is largely whitespace changes and
a few dangling files with tab indents.

See scripts/codestyle
2019-06-19 21:02:24 -07:00
Travis Geiselbrecht
1b7a28efb8 [include][lk] fixup lk/ include path move 2019-06-19 19:46:11 -07:00
Erik Corry
6d0122b98e [heap] Add API used by Dartino to get arena list 2016-03-23 21:22:39 +01:00
Travis Geiselbrecht
9a5cd5c529 [kernel][vm] add support for multiple user address spaces
Generically add support for more than one user address space,
attach to a thread, and context switch as thread swaps happen.

Add support for ARM and ARM64, and stub out support for x86 platforms.
2016-02-16 15:24:25 -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
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
Arve Hjønnevåg
c593fc51a1 [kernel][vm] panic if mark_pages_in_use fails to find the paddr
If mark_pages_in_use fails to mark the kernel code (or data) as used,
it will get corrupted as the heap starts reusing using it.

Change-Id: I48f62bb68dcbad3268304aa2a1e63e9956128064
2015-03-19 18:01:11 -07:00
Arve Hjønnevåg
d0c4833b3f [kernel][vm] Fix end address checks
If the end of a range is at the end of the virtual address space,
(base + size) is 0. Use (base + size - 1) instead.

Change-Id: I7d02250d765df0ab2bd23b60ee7a484951238c58
2015-03-08 19:05:14 -07:00
Michael Ryleev
ecca4f4aa0 [kernel][vm] Add vmm_free_region and kvaddr_to_paddr
Change-Id: Ieb7a11dcd6d7cd96bfef252b41cc7ccdd4892b8f
2014-11-04 15:30:32 -08:00
Travis Geiselbrecht
e72c8bfede [vm] when marking boot physical pages used, make sure the address range is inclusive 2014-08-15 13:37:21 -07:00
Travis Geiselbrecht
e35c99d004 [kernel][vm] fix debug code to compile if console disabled 2014-07-24 02:59:24 -07:00
Travis Geiselbrecht
1ffc542896 [kernel][vm] Require pre-initialized lists for pmm routines, clean up docs in header 2014-07-17 18:30:36 -07:00
Travis Geiselbrecht
8637522be0 [kernel][vm] squelch the debug trace spew 2014-07-16 21:05:46 -07:00
Travis Geiselbrecht
986d1590cb [kernel][vm] first stab at a virtual memory manager
Add kernel/vm code to handle memory management in large page-aligned
regions of virtual space. This is composed via a pmm (physical
memory manager) and vmm (virtual memory manager) and the architecturally
specific code to manage the mmu.

Add ARMv7 paging code.
2014-07-11 18:06:37 -07:00