OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [uwin.asm] - Diff between revs 38 and 154

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 154
/* stuff needed for libgcc on win32.  */
/* stuff needed for libgcc on win32.  */
#ifdef L_chkstk
#ifdef L_chkstk
        .global __chkstk
        .global __chkstk
        .global __alloca
        .global __alloca
__chkstk:
__chkstk:
__alloca:
__alloca:
        pushl  %ecx             /* save temp */
        pushl  %ecx             /* save temp */
        movl   %esp,%ecx        /* get sp */
        movl   %esp,%ecx        /* get sp */
        addl   $0x8,%ecx        /* and point to return addr */
        addl   $0x8,%ecx        /* and point to return addr */
probe:  cmpl   $0x1000,%eax     /* > 4k ?*/
probe:  cmpl   $0x1000,%eax     /* > 4k ?*/
        jb    done
        jb    done
        subl   $0x1000,%ecx             /* yes, move pointer down 4k*/
        subl   $0x1000,%ecx             /* yes, move pointer down 4k*/
        orl    $0x0,(%ecx)              /* probe there */
        orl    $0x0,(%ecx)              /* probe there */
        subl   $0x1000,%eax             /* decrement count */
        subl   $0x1000,%eax             /* decrement count */
        jmp    probe                    /* and do it again */
        jmp    probe                    /* and do it again */
done:   subl   %eax,%ecx
done:   subl   %eax,%ecx
        orl    $0x0,(%ecx)      /* less that 4k, just peek here */
        orl    $0x0,(%ecx)      /* less that 4k, just peek here */
        movl   %esp,%eax
        movl   %esp,%eax
        movl   %ecx,%esp        /* decrement stack */
        movl   %ecx,%esp        /* decrement stack */
        movl   (%eax),%ecx      /* recover saved temp */
        movl   (%eax),%ecx      /* recover saved temp */
        movl   4(%eax),%eax     /* get return address */
        movl   4(%eax),%eax     /* get return address */
        jmp    *%eax
        jmp    *%eax
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.