Ignore:
Timestamp:
Oct 9, 2013, 9:32:41 AM (11 years ago)
Author:
meunier
Message:
  • Added a syscall and some user functions to manipulate the Simulation Helper
  • Changed the the way the Vseg -> Pseg mapping is made during the boot to better utilize the address space (+ adaptation of the algorithm in memo)
  • Fixed a bug in boot_init (vobj_init): the vobj initialization could only be made for the first application (ptpr was not changed)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/sys/giet.s

    r219 r255  
    99* - the _cause_vector[16] array defines the 16 causes to enter the GIET
    1010*   it is initialized in th exc_handler.c file
    11 * - the _syscall_vector[32] array defines the 32 system calls entry points
     11* - the _syscall_vector[64] array defines the 64 system calls entry points
    1212*   it is initialised in the sys_handler.c file
    1313***********************************************************************************/
     
    3838 *
    3939 * A system call is handled as a special function call.
    40  *  - $2 contains the system call index (< 16).
     40 *  - $2 contains the system call index (< 64).
    4141 *  - $3 is used to store the syscall address
    4242 *  - $4, $5, $6, $7 contain the arguments values.
     
    6262    sw      $27,    20($29)         /* save it in the stack */
    6363
    64     andi    $26,    $2,     0x1F    /* $26 <= syscall index (i < 32) */
     64    andi    $26,    $2,     0x3F    /* $26 <= syscall index (i < 64) */
    6565    sll     $26,    $26,    2       /* $26 <= index * 4 */
    6666    la      $27,    _syscall_vector /* $27 <= &_syscall_vector[0] */
Note: See TracChangeset for help on using the changeset viewer.