This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# str sp, [pc] | |
fel fill 0x10000 1 0x00 | |
fel fill 0x10001 1 0xd0 | |
fel fill 0x10002 1 0x8f | |
fel fill 0x10003 1 0xe5 | |
# bx lr | |
fel fill 0x10004 1 0x1e | |
fel fill 0x10005 1 0xff | |
fel fill 0x10006 1 0x2f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c | |
index f01846e..cd06c72 100644 | |
--- a/arch/arm/cpu/armv7/sunxi/board.c | |
+++ b/arch/arm/cpu/armv7/sunxi/board.c | |
@@ -106,6 +106,10 @@ void s_init(void) | |
* access gets messed up (seems cache related) */ | |
setbits_le32(SUNXI_SRAMC_BASE + 0x44, 0x1800); | |
#endif | |
+#if defined CONFIG_MACH_SUN6I | |
+ /* Allow access to RTC clock from non-secure mode */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configs/A10-OLinuXino-Lime_defconfig b/configs/A10-OLinuXino-Lime_defconfig | |
index ee219f8..f826a51 100644 | |
--- a/configs/A10-OLinuXino-Lime_defconfig | |
+++ b/configs/A10-OLinuXino-Lime_defconfig | |
@@ -13,3 +13,7 @@ CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_EMAC,AHCI,SATAPWR=SUNXI_GPC(3)" | |
# CONFIG_CMD_FLASH is not set | |
# CONFIG_CMD_FPGA is not set | |
CONFIG_USB_EHCI_HCD=y | |
+CONFIG_USB0_VBUS_PIN="PB9" | |
+CONFIG_USB0_ID_DET="PH4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat test_adds_epu16.c | |
#include <emmintrin.h> | |
__m128i x(__m128i a, __m128i b) | |
{ | |
return _mm_adds_epu16(a, b); | |
} | |
$ gcc -O3 -c test_adds_epu16.c | |
$ objdump -d test_adds_epu16.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <assert.h> | |
#include <emmintrin.h> | |
uint32_t foo(uint32_t a) | |
{ | |
__m128i xa = _mm_cvtsi32_si128(a); | |
return _mm_cvtsi128_si32(_mm_packus_epi16(xa, xa)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some oprofile log snippets for https://plus.google.com/u/0/100242854243155306943/posts/KWcGxqFemfV | |
Run on ARM Cortex-A8 1GHz, videotestsrc used instead of v4l2src (no camera here) | |
---------------------------------------------------------------------------- | |
# opcontrol --deinit | |
# opcontrol --separate=kernel --no-vmlinux | |
# opcontrol --init | |
# opcontrol --reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
description = "Chrome OS kernel image with one or more FDT blobs"; | |
#address-cells = <1>; | |
images { | |
kernel@1 { | |
data = /incbin/("arch/arm/boot/zImage"); | |
type = "kernel_noload"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Graphics acceleration benchmark on Allwinner A10 (1GHz, 2x16-bit DDR3 @480MHz) | |
DirectFB 1.4.11 patched with https://github.com/allwinner-ics/lichee_buildroot/blob/master/package/directfb/directfb-1.4.11-vmware.patch | |
32bpp color depth, 640x480 screen resolution | |
---------------------------------------------------------------------------------------------------------------------------------------- | |
./df_dok --noaccel --system ./df_dok (G2D acceleration) pixman-0.28.0 | |
---------------------------------------------------------------------------------------------------------------------------------------- | |
Anti-aliased Text ( 271.765 KChars/sec) [100.0%] ( 139.840 KChars/sec) [100.0%] | |
Anti-aliased Text (blend) ( 49.202 KChars/sec) [100.0%] ( 33.455 KChars/sec) [100.0%] | |
Fill Rectangle ( 326.699 MPixel/sec) [100.3%] (* 200.442 MPixel/sec) [ 2.0%] 359. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc -v | |
Using built-in specs. | |
COLLECT_GCC=gcc-4.7.2 | |
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.2/lto-wrapper | |
Target: x86_64-pc-linux-gnu | |
Configured with: /var/tmp/portage/sys-devel/gcc-4.7.2/work/gcc-4.7.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --enable-multilib --with-multilib-list=m32,m64 --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.7.2/py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Overhead Command Shared Object Symbol | |
# ........ ......... .................. ............................... | |
# | |
38.75% retroarch libGL.so.1.5.08004 [.] linear_texel_locations | |
22.67% retroarch libGL.so.1.5.08004 [.] _swrast_texture_span | |
13.30% retroarch libGL.so.1.5.08004 [.] lerp_rgba_2d | |
7.53% retroarch libGL.so.1.5.08004 [.] shade_texture_span | |
6.75% retroarch libGL.so.1.5.08004 [.] fetch_texel_2d_f_rgba8888 | |
5.96% retroarch libGL.so.1.5.08004 [.] sample_2d_linear.isra.27 | |
0.85% retroarch libGL.so.1.5.08004 [.] pack_row_ubyte_ARGB8888 |