Home | History | Annotate | Download | only in jni
      1 # assembly-x86.S
      2 #
      3 # Copyright 2011, The Android Open Source Project
      4 # Copyright 2011, Intel Corporation
      5 #
      6 # Redistribution and use in source and binary forms, with or without
      7 # modification, are permitted provided that the following conditions are met:
      8 #     * Redistributions of source code must retain the above copyright
      9 #       notice, this list of conditions and the following disclaimer.
     10 #     * Redistributions in binary form must reproduce the above copyright
     11 #       notice, this list of conditions and the following disclaimer in the
     12 #       documentation and/or other materials provided with the distribution.
     13 #     * Neither the name of Google Inc. nor the names of its contributors may
     14 #       be used to endorse or promote products derived from this software
     15 #       without specific prior written permission.
     16 #
     17 # THIS SOFTWARE IS PROVIDED BY Google Inc. ``AS IS'' AND ANY EXPRESS OR
     18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     19 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
     20 # EVENT SHALL Google Inc. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     22 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     23 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     24 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     25 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     26 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27 #
     28 .global foo
     29 foo:
     30     pushl   %ebp
     31     movl    %esp, %ebp
     32     subl    $8, %esp
     33 
     34     movl    $0, %eax
     35     leave
     36     ret
     37