Revision 5fafdf24 arm-semi.c

b/arm-semi.c
1 1
/*
2 2
 *  Arm "Angel" semihosting syscalls
3
 * 
3
 *
4 4
 *  Copyright (c) 2005, 2007 CodeSourcery.
5 5
 *  Written by Paul Brook.
6 6
 *
......
194 194
                return STDOUT_FILENO;
195 195
        }
196 196
        if (use_gdb_syscalls()) {
197
            gdb_do_syscall(arm_semi_cb, "open,%s,%x,1a4", ARG(0), 
197
            gdb_do_syscall(arm_semi_cb, "open,%s,%x,1a4", ARG(0),
198 198
			   (int)ARG(2)+1, gdb_open_modeflags[ARG(1)]);
199 199
            return env->regs[0];
200 200
        } else {
......
283 283
        }
284 284
    case SYS_FLEN:
285 285
        if (use_gdb_syscalls()) {
286
            gdb_do_syscall(arm_semi_flen_cb, "fstat,%x,%x", 
286
            gdb_do_syscall(arm_semi_flen_cb, "fstat,%x,%x",
287 287
			   ARG(0), env->regs[13]-64);
288 288
            return env->regs[0];
289 289
        } else {
......
401 401
                }
402 402
                ts->heap_limit = limit;
403 403
            }
404
              
404
             
405 405
            ptr = lock_user(ARG(0), 16, 0);
406 406
            ptr[0] = tswap32(ts->heap_base);
407 407
            ptr[1] = tswap32(ts->heap_limit);

Also available in: Unified diff