Re: [android-porting] Why memcmp is like this in bionic?

2012-06-20 Thread David Given
Victor Surfer wrote: [...] In the for loop, the same logic repeats 4 times, why? Can it no repeat? It's to improve performance; the magic keyword to lookup for more information is 'loop unrolling'. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ Parents let children ride bicycles

Re: [android-porting] Re: EXPERT in menuconfig

2012-06-11 Thread David Given
Babak wrote: David If you don't mind me asking what kernel version are you doing this for? It turns out that expert not in kernels = 2.6.37 Ah. I have 3.0.x. I definitely recall something similar from older kernels, though --- all the option does is enable a bunch of other options that most

Re: [android-porting] EXPERT in menuconfig

2012-06-09 Thread David Given
On 07/06/12 02:08, Babak wrote: In a patch that adds a kernel module, I see that it has the requirement EXPERT. How do you enable this feature? General setup - Configure standard kernel features. For reference, if you do: make nconfig ...it will build and run the fast ncurses based

[android-porting] Cupcake source?

2012-03-29 Thread David Given
Does anyone know how to get the Android cupcake source code? The official repository only has tags going back as far as donut, and the only links I've found all refer to the old, defunct, kernel.org repository. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ Parents let children ride

Re: [android-porting] build a single module

2009-12-03 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 anshexp wrote: [...] i am new to android can anybody tell me what is the way to build a particular module . i don't wana to build whole file system. i tried make $(LOCAL_MODULE) as given in build system document but it is not working.

[android-porting] Problems with EGL_CONTEXT_LOST

2009-11-23 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been investigating how the Android EGL implementation handles power management events (EGL terminology, nothing to do with real power management) and unfortunately it seems to be all wrong. Particularly, the spec says: Following a power

[android-porting] Re: Memory overcommit

2009-09-14 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dianne Hackborn wrote: [...] If you turn off over-commit, I believe Android won't even boot on a G1, because Linux would need to assume that RAM is needed for every mmapped() thing, and we run out of it well before the system is fully up. Not

[android-porting] Re: Memory overcommit

2009-09-14 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Turner wrote: [...] That can only be said for files that are mapped read-only. It doesn't apply for anything that is shared copy-on-write (e.g. the Zygote process pages, as well as initial heap) and non-file mappings. Ah, I'd forgotten

[android-porting] Memory overcommit

2009-09-13 Thread David Given
Hello, I was rather startled recently to notice that the standard Android kernel appears to have the memory overcommit setting set to 1. This is --- as far as I can tell, the numbering got changed not long ago and not all the documentation has been updated --- these means 'allow all memory

[android-porting] Re: Memory overcommit

2009-09-13 Thread David Given
problem I've got here is that an app can successfully allocate memory which it then can't use. Memory overcommit hides memory allocation failures from the app. The first the app knows that the memory isn't available is when the OOM killer terminates it without warning! -- David Given d

[android-porting] Re: Writing raw data on a partition.

2009-08-26 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shashank wrote: [...] I guess I need some special permission inorder to write on the partition. Can someone please point me to a way by which i can do that? I'm afraid that you just can't write to flash devices like that --- they need special

[android-porting] Re: How to develop more than 20 timer parallely..

2009-02-02 Thread David Given
what you mean by this, but if you mean that timer1 goes off at now+10, now+1, now+2 and another now+10, then the earliest timer expiration is obviously going to be now+1. - -- David Given d...@cowlark.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG

[android-porting] Re: How to develop more than 20 timer parallely..

2009-02-01 Thread David Given
single hardware timer to wait for the one with the shortest timeout. After all, none of the other timers can expire until that one expires first... - -- David Given d...@cowlark.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http

[android-porting] Re: How to develop more than 20 timer parallely..

2009-02-01 Thread David Given
later and continue. The fact that you've got multiple timers is irrelevant; we live in a universe with only kind of time, so there's only one order in which events can happen. The earliest event *must* happen before the later events happen, so you only need to wait for the earliest event. - -- David