Commit Graph

874 Commits

Author SHA1 Message Date
M1cha
ccf5455b3f [gitignore] remove cscope.out
cscope.* covers that already
2015-01-29 11:00:33 +01:00
Travis Geiselbrecht
0aeb13e2cc [tools][mkimage] fix bug handling -o command line switch 2015-01-08 18:17:25 -08:00
Travis Geiselbrecht
b76d5d594a [minip][tcp] fix bug in tcp_read() where the unblocking event is never unsignalled
After the first tcp_read, all subsequent calls would spin the cpu.
2015-01-08 16:21:08 -08:00
Travis Geiselbrecht
3a7348e855 [unittest] Refactor the unit test library for better display
- Improve the result display
    - Add callback for printing out the results

Change-Id: I9e0172183f608ba9ae9311f088d4c067fc9e9fed
2014-12-18 15:28:22 -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
a173db1b31 [platform][zynq] add timeout to fpga programming code, only dma 4 byte words (/4) 2014-12-11 20:01:11 -08:00
Travis Geiselbrecht
814466de4d [tools] trim metadata and endian swap fpga images in tools
For both mkimage and lkboot, make sure the fpga bitfile is trimmed
(everything prior to the 8 byte sync pattern removed) and 4 byte endian
swapped prior to putting on device.
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
Travis Geiselbrecht
0899bc7cfd [lib][bootimage] add a few accessors for the bootimage library 2014-12-11 19:58:46 -08:00
Travis Geiselbrecht
a34a023fe2 [lib][bootargs] initial stab at a lk specific boot argument passing scheme
Similar to linux's ATAGS scheme. Pass a pointer to an array of structures
with different tags for different pieces of data to squirrel away.
2014-12-11 19:58:45 -08:00
Travis Geiselbrecht
68f935e613 [platform][zynq] add support for putting the qspi peripheral in linear mode 2014-12-11 19:25:29 -08:00
Travis Geiselbrecht
eb6749781d [lib][bio] add a few ioctls to get and put the memory map for devices that support it 2014-12-11 19:25:29 -08:00
Sergio Rodriguez
ce92871b86 [arch][x86-64] Fixing compiler name prefix 2014-12-11 19:23:12 -08:00
Sergio Rodriguez
737b76684c [arch][x86-64] Adding Virtual memory support with a 1 to 1 mapping 2014-12-11 19:22:58 -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
Shreyas Nagaraj
1d5339a815 [arch][x86-64] removing platform init code specific for x86-64 from 32 bit 2014-12-11 19:22:36 -08:00
Shreyas Nagaraj
39439a5388 [platform][pc] Separating x86 MMU init code flow for 32 bit & 64 bit Arch 2014-12-11 19:22:28 -08:00
Sergio Rodriguez
f943e7593c [lib][console] Modifying console for x86-64
Adding an 8 byte alignment to fix a problem with the console and app
section elements being unaligned. Will need a better fix eventually.
2014-12-11 19:21:46 -08:00
Shreyas Nagaraj
78c4eee1c8 [arch][x86-64] MMU enabling 2014-12-11 19:21:33 -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
f8f2d851f0 [lib][bootimage] first stab at device side bootimage processing
Add lib/bootimage to parse in memory copies of bootimages
Add a few command line arguments to mkimage
2014-11-21 15:50:18 -08:00
Travis Geiselbrecht
fdc3d1199a [lib][mincrypt] move the mincrypt headers in a level to match the module name 2014-11-21 15:10:55 -08:00
Chris Anderson
5ed4eca1ba [zynq] Add slcr commands and pull out DDR config 2014-11-21 10:37:00 -08:00
Chris Anderson
67eba69600 [gem] Make TX path asynchronous 2014-11-21 10:37:00 -08:00
Chris Anderson
036eecc07d [minip] Update packet test 2014-11-21 10:37:00 -08:00
Chris Anderson
3636eca095 [pktbuf] Make default behavior to block until a pktbuf is available 2014-11-21 10:37:00 -08:00
Chris Anderson
7abf8ce09e [list] Add list_length 2014-11-21 10:37:00 -08:00
Travis Geiselbrecht
426a385541 [lib][debugcommands] preflight the address to dump with the mmu (if present) 2014-11-20 17:21:02 -08:00
Brian Swetland
52c893a85e [tools][lkboot] expand transfer buffer
This is a bit of a hack.
2014-11-20 16:24:18 -08:00
Travis Geiselbrecht
825207bb99 [project][pc-x86-test] add libm to pc tests 2014-11-18 10:43:41 -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
f846a34901 [project][vexpress] add libm and disable linker GC 2014-11-18 10:43:40 -08:00
Travis Geiselbrecht
d06139b4fb [make] add -MP to the compile line
This seems to fix a long-standing issue that occurs if a header file
is removed or moved to a new location, causing the make system to
bomb out on the next build due to stale .d file dependencies on the old
location. -MP adds empty rules for all of the .h files to the .d file
which at least lets it get past this stage.
2014-11-05 12:59:02 -08: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
Michael Ryleev
49638fbf32 [arch][arm] Add support for WITH_NO_PHYS_RELOCATION flag
Do not perform kernel relocation in physical memory if WITH_NO_PHYS_RELOCATION flags is specified.
It is useful if kernel load address is not known ahead of time.

Change-Id: I64823c39ff3fef5ff619abd17f6fc16380c04f4f
2014-11-04 15:30:32 -08:00
Michael Ryleev
1862d27b04 [arch][arm] Add SMP safe implementation of invalidate_tlb routines
Change-Id: I4557c9d728daa8954631cb638872c4e8a078b4c7
2014-11-04 15:30:32 -08:00
Michael Ryleev
31b5ec2792 [arch][arm] Add arm_invalidate_tlb_mva_asid function call
Change-Id: I4791652f9450ce5c8e07d054bc795a6ef3896931
2014-11-04 15:30:32 -08:00
Michael Ryleev
e9bc4ee756 [arch][mmu] Add support for non-secure memory
Change-Id: Ib5e0a0078719c5cbc4a90eac91712cd2bb517f28
2014-11-04 15:30:00 -08:00
Michael Ryleev
75443b4df4 [arch][arm] Fix arm_fiq handler
Change-Id: Ie3bd4cdbd581093e3bddd164e24563c45b80639d
2014-11-04 15:17:15 -08:00
Dima Zavin
511c4002f1 [bits] add bitmap_ffz to find first zero bit (lsb) in a bitmap
Change-Id: I1166dc2395352d9f9e6ceb5b9d767e1b1fb4dfdb
Signed-off-by: Dima Zavin <dima@android.com>
2014-11-04 15:16:16 -08:00
Dima Zavin
f390cf99ba [bitmap] properly calculate number of words needed to store the bitmap
Change-Id: I5624b4d6ba1b4ce03d0a2edf7fa815146d74c879
Signed-off-by: Dima Zavin <dima@android.com>
2014-11-04 15:16:16 -08:00
Aaron Gamble
9e89231d81 [libc] Add qsort
Change-Id: Id8aca5c65f09a63d2bd51cfb29dd51018bb23a5b
Signed-off-by: Aaron Gamble <jgamble@nvidia.com>
2014-11-04 15:16:16 -08:00
Michael Ryleev
e913bf139a [dev][timer][arm_generic] Disable LOCAL_TRACE
Change-Id: Ia548485412b08069e2b490b11e525afe2d714061
2014-11-04 15:16:16 -08:00
Michael Ryleev
116eb2c6ac [dev][timer][arm_generic] Switch to use lib/fixed_point
Change-Id: I7fd5e2a30d1ca10ded2b6ec9e3be8a3eb14cf644
2014-11-04 15:16:16 -08:00
Travis Geiselbrecht
49b0475a9a [target][uzed] remove extraneous TIMER_CLOCK_FREQ #define 2014-10-30 14:51:25 -07:00
Travis Geiselbrecht
ef9d85f27a [vm] remove the static asserts for mmu_initial_mapping table
Side effect of making it 64bit okay.
2014-10-29 20:59:50 -07:00
Shreyas Nagaraj
ae787df379 [vm] Provisioning no-execute perm in the Arch MMU flags which can be used by x86-64 arch. 2014-10-29 20:58:21 -07:00