Commit graph

547 commits

Author SHA1 Message Date
Iliyan Malchev
ce62102feb init: add permissions for /dev/diag and /dev/diag_arm9
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-08-03 20:22:55 -07:00
Android (Google) Code Review
029c7f81a9 Merge change 9407
* changes:
  Fix parsing of function declarations that return pointers.
2009-07-31 15:59:59 -07:00
Jack Palevich
96138992ac Fix parsing of function declarations that return pointers.
Check that <op>= only evaluates the left-hand-side once.
2009-07-31 15:58:19 -07:00
Android (Google) Code Review
84c7966eed Merge change 9402
* changes:
  Support brackets for accessing array values.
2009-07-31 15:30:54 -07:00
Android (Google) Code Review
6342dbd4cd Merge change 9401
* changes:
  Clean up the way we handle postfix operators.
2009-07-31 15:30:23 -07:00
Android (Google) Code Review
61c00b8203 Merge change 9400
* changes:
  Implement pre-increment / pre-decrement
2009-07-31 15:30:07 -07:00
Android (Google) Code Review
e62b6ea3e0 Merge change 9399
* changes:
  Support the comma operator.
2009-07-31 15:29:42 -07:00
Jack Palevich
47cbea9c69 Support brackets for accessing array values.
Don't yet support allocating arrays.
2009-07-31 15:25:53 -07:00
Jack Palevich
5b65909f93 Clean up the way we handle postfix operators.
Function names are now treated just like any other variable.
2009-07-31 14:55:07 -07:00
Jack Palevich
aaac9284b4 Implement pre-increment / pre-decrement 2009-07-31 14:34:34 -07:00
Jack Palevich
43aaee31b9 Support the comma operator. 2009-07-31 14:01:37 -07:00
Android (Google) Code Review
95f2af6d23 Merge change 9366
* changes:
  Implement op=.
2009-07-31 12:06:17 -07:00
Android (Google) Code Review
18f275a901 Merge change 9365
* changes:
  Test multiple levels of pointer indirection.
2009-07-31 12:05:53 -07:00
Android (Google) Code Review
460675eb91 Merge change 9364
* changes:
  Assignment in ordinary expressions is now handled using lvals and rvals.
2009-07-31 12:05:22 -07:00
Android (Google) Code Review
bb75dcc1e6 Merge change 9363
* changes:
  Start using lvals and rvals.
2009-07-31 12:04:56 -07:00
Android (Google) Code Review
b10177ad48 Merge change 9362
* changes:
  Change assignment code gen to use leaR0 .. storeR0ToTOS.
2009-07-31 12:03:20 -07:00
Jack Palevich
0c01774816 Implement op=. 2009-07-31 12:00:39 -07:00
Jack Palevich
beb4fe95a0 Test multiple levels of pointer indirection. 2009-07-31 11:27:29 -07:00
Jack Palevich
29daf577a1 Assignment in ordinary expressions is now handled using lvals and rvals. 2009-07-30 19:38:55 -07:00
Jack Palevich
b5e3331159 Start using lvals and rvals. 2009-07-30 19:06:34 -07:00
Jack Palevich
8968e8e115 Change assignment code gen to use leaR0 .. storeR0ToTOS.
This is another step towards being able to handle lval / rvals.

Improved storeR0ToTOS to convert R0 to the proper type to store into
*TOS. (This is something that storeR0 was already doing.)

Removed storeR0 as it is no longer being used.
2009-07-30 16:57:33 -07:00
Mike Lockwood
1f4ff53517 am cc1de48d: adb: Another attempted workaround for the adb disconnect problem.
Merge commit 'cc1de48dcdf06c76ee14abbe2a237aa51b5b3bad'

* commit 'cc1de48dcdf06c76ee14abbe2a237aa51b5b3bad':
  adb: Another attempted workaround for the adb disconnect problem.
2009-07-30 16:31:40 -07:00
Mike Lockwood
cc1de48dcd adb: Another attempted workaround for the adb disconnect problem.
For adb shell commands (as well as shell based commands like logcat and bugreport) we now
batch USB writes into 4K chunks instead of sending small packets of data as they come in.
A timeout prevents us from blocking for more than 100ms when our 4K buffer is partially full.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-30 16:23:56 -07:00
Jack Palevich
8f361faffc Fix bad ARM code generation for '||' and '&&' operators.
Add tests of '&', '&&', '|' and '||' operators.
2009-07-30 16:19:43 -07:00
Jack Palevich
9f51a26961 Load function symbols using lea syntax.
Use a common code path for ordinary, forward, and indirect calls.
2009-07-29 16:22:26 -07:00
Jack Palevich
a7813bda4a Remove loadR0 in favor of lea + loadR0FromR0.
(This is another small step towards lval/rval.)

+ Use strd to store local doubles.
+ loadR0FromR0 now handles pointers.
2009-07-29 11:36:04 -07:00
Jack Palevich
ddf7c9c141 Implement inc/dec in a more lval-friendly way. 2009-07-29 10:28:18 -07:00
Jack Palevich
7fcdf1c5f8 Adjust stack alignment for local variables to work more like arguments.
This makes it easier to generate frame-pointer-relative addresses for ARM.

Prior to this we had stored char sized local variables in the highest
address of the 4-byte stack allocation. Now we store "char"s in the
lowest address of the 4-byte stack allocation, just like chars are
passed as arguments.

We now store global chars on byte boundaries.
2009-07-27 17:54:10 -07:00
Dan Egnor
894c5cd214 add log tags for backup/restore events 2009-07-27 15:13:00 -07:00
Jaikumar Ganesh
630f5f049b Add Bluetooth PBAP service. 2009-07-26 23:18:29 -07:00
Jean-Baptiste Queru
9c3744bb73 reconcile korg/master into goog/master 2009-07-26 11:43:56 -07:00
Jean-Baptiste Queru
96d58f4f52 Merge korg/donut into korg/master 2009-07-25 18:07:41 -07:00
Xavier Ducrohet
1fde31c8fb am de6f62a6: Add support for Samsung and Motorola devices.
Merge commit 'de6f62a609120c3d9e4e53689c3b309842ec874b'

* commit 'de6f62a609120c3d9e4e53689c3b309842ec874b':
  Add support for Samsung and Motorola devices.
2009-07-24 16:09:22 -07:00
Xavier Ducrohet
de6f62a609 Add support for Samsung and Motorola devices.
Also update the linux code. Some devices have more complex USB descriptors
which can't be parsed with the simple assumption of just skipping the
endpoint descriptors.
2009-07-24 14:42:27 -07:00
Doug Zongker
d39e972831 am d52f54c4: install recovery image using patch mechanism
Merge commit 'd52f54c4552d2f35b3c2c2ac60350ac83760222f'

* commit 'd52f54c4552d2f35b3c2c2ac60350ac83760222f':
  install recovery image using patch mechanism
2009-07-23 23:59:16 -07:00
Doug Zongker
d52f54c455 install recovery image using patch mechanism
With the corresponding change in build/tools, the recovery image is
installed via a shell script that is emitted by the OTA builder.
2009-07-23 15:18:34 -07:00
Jack Palevich
2ff5c22e96 Keep track of the current arena.
This means we don't have to pass it around as an argument.

This change was made because I'm about to start creating pointer types
during expression evaluation, and I didn't want to add an arena
argument to all the expression functions.
2009-07-23 15:11:22 -07:00
Jack Palevich
89baa2083f Fix the ARM postdecrement operator.
Add a test for ++ and -- so this bug won't happen again.
2009-07-23 11:45:15 -07:00
Android (Google) Code Review
c1e49f96f9 Merge change 7792
* changes:
  Code generator cleanup
2009-07-17 16:39:00 -07:00
Android (Google) Code Review
0761a49cd4 Merge change 7791
* changes:
  Remove unused logging code.
2009-07-17 16:38:41 -07:00
Android (Google) Code Review
10b90870a6 Merge change 7790
* changes:
  Track lvalues vs. rvalues.
2009-07-17 16:38:25 -07:00
Jack Palevich
58c30eef99 Code generator cleanup
Factor ARM integer binary operation setup code into a function.

Don't pass redundant pType information into loadR0FromR0, storeR0ToTOS,
gcmp, gUnaryCmp, li

Separate inc/dec from variable loading. Generates worse code, but now
we handle pointer inc/dec and char inc/dec.
2009-07-17 16:35:23 -07:00
Jack Palevich
b40367bde1 Remove unused logging code. 2009-07-17 13:51:51 -07:00
Jack Palevich
ba929a4ffa Track lvalues vs. rvalues. 2009-07-17 10:20:32 -07:00
San Mehat
6b001d8667 am 1f278215: vold: If we\'re bootstrapping, don\'t automatically mount the SD card. Also fixes some error display bugs (our printf doesnt support %m)
Merge commit '1f27821568065715d3235c0e690c42d0d7a413bc'

* commit '1f27821568065715d3235c0e690c42d0d7a413bc':
  vold: If we're bootstrapping, don't automatically mount the SD card. Also fixes some
2009-07-17 02:09:08 -07:00
San Mehat
c0334b18c5 am d8221d98: vold: vfat: Run up to 3 passes of the disk checker when the checker indicates the FS has been modified. Also create LOST.DIR if it doesn\'t exist on mount.
Merge commit 'd8221d9869f9fe1031219e8f6cbcef0771d767fa'

* commit 'd8221d9869f9fe1031219e8f6cbcef0771d767fa':
  vold: vfat: Run up to 3 passes of the disk checker when the checker
2009-07-17 02:08:59 -07:00
San Mehat
a27bd2c768 am b6e70d87: vold: Allow a damaged volume to be re-evaluated for mounting
Merge commit 'b6e70d877886bf363c5789456dcc00bb3f271c95'

* commit 'b6e70d877886bf363c5789456dcc00bb3f271c95':
  vold: Allow a damaged volume to be re-evaluated for mounting
2009-07-17 02:08:57 -07:00
Jack Palevich
3377bfd845 Report error (rather than crashing) when a declaration name is missing.
Repo case:

void main()
{
   int );
}
2009-07-16 19:05:07 -07:00
Jack Palevich
8148c5be54 Coerce R0 to destination type before storing it into a variable. 2009-07-16 18:24:47 -07:00
Jack Palevich
dc45646238 Implement a "#line" directive. 2009-07-16 16:50:56 -07:00