Changeset 53f9821 in mainline for generic/src/syscall/syscall.c


Ignore:
Timestamp:
2006-03-20T20:32:17Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
018d957e
Parents:
9d3e185
Message:

Cleanup of spinlocks, now compiles both ia32 and amd64 with
and without DEBUG_SPINLOCKS. Made spinlocks inline.
Moved syscall_handler to generic (it was identical for ia32,amd64 & mips32).
Made slightly faster syscall for ia32.
Made better interrupt routines for ia32.
Allow not saving non-scratch registers during interrupt on ia32,amd64,mips32.
Aligned interrupt handlers on ia32,amd64, this should prevent problems
with different instruction lengths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/syscall/syscall.c

    r9d3e185 r53f9821  
    6363}
    6464
     65/** Dispatch system call */
     66__native syscall_handler(__native a1, __native a2, __native a3,
     67                         __native a4, __native id)
     68{
     69        if (id < SYSCALL_END)
     70                return syscall_table[id](a1,a2,a3,a4);
     71        else
     72                panic("Undefined syscall %d", id);
     73}
     74
    6575syshandler_t syscall_table[SYSCALL_END] = {
    6676        sys_io,
Note: See TracChangeset for help on using the changeset viewer.