|
@@ -95,7 +95,7 @@ static abi_long do_freebsd_sysarch(CPUX86State *env, int op, abi_ulong parms)
|
|
abi_ulong val;
|
|
abi_ulong val;
|
|
int idx;
|
|
int idx;
|
|
|
|
|
|
- switch(op) {
|
|
|
|
|
|
+ switch (op) {
|
|
#ifdef TARGET_ABI32
|
|
#ifdef TARGET_ABI32
|
|
case TARGET_FREEBSD_I386_SET_GSBASE:
|
|
case TARGET_FREEBSD_I386_SET_GSBASE:
|
|
case TARGET_FREEBSD_I386_SET_FSBASE:
|
|
case TARGET_FREEBSD_I386_SET_FSBASE:
|
|
@@ -272,7 +272,7 @@ static abi_long lock_iovec(int type, struct iovec *vec, abi_ulong target_addr,
|
|
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
|
|
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
|
|
if (!target_vec)
|
|
if (!target_vec)
|
|
return -TARGET_EFAULT;
|
|
return -TARGET_EFAULT;
|
|
- for(i = 0;i < count; i++) {
|
|
|
|
|
|
+ for (i = 0;i < count; i++) {
|
|
base = tswapl(target_vec[i].iov_base);
|
|
base = tswapl(target_vec[i].iov_base);
|
|
vec[i].iov_len = tswapl(target_vec[i].iov_len);
|
|
vec[i].iov_len = tswapl(target_vec[i].iov_len);
|
|
if (vec[i].iov_len != 0) {
|
|
if (vec[i].iov_len != 0) {
|
|
@@ -298,7 +298,7 @@ static abi_long unlock_iovec(struct iovec *vec, abi_ulong target_addr,
|
|
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
|
|
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
|
|
if (!target_vec)
|
|
if (!target_vec)
|
|
return -TARGET_EFAULT;
|
|
return -TARGET_EFAULT;
|
|
- for(i = 0;i < count; i++) {
|
|
|
|
|
|
+ for (i = 0;i < count; i++) {
|
|
if (target_vec[i].iov_base) {
|
|
if (target_vec[i].iov_base) {
|
|
base = tswapl(target_vec[i].iov_base);
|
|
base = tswapl(target_vec[i].iov_base);
|
|
unlock_user(vec[i].iov_base, base, copy ? vec[i].iov_len : 0);
|
|
unlock_user(vec[i].iov_base, base, copy ? vec[i].iov_len : 0);
|
|
@@ -326,10 +326,10 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1,
|
|
#endif
|
|
#endif
|
|
record_syscall_start(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, 0, 0);
|
|
record_syscall_start(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, 0, 0);
|
|
|
|
|
|
- if(do_strace)
|
|
|
|
|
|
+ if (do_strace)
|
|
print_freebsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
print_freebsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
|
|
|
|
- switch(num) {
|
|
|
|
|
|
+ switch (num) {
|
|
case TARGET_FREEBSD_NR_exit:
|
|
case TARGET_FREEBSD_NR_exit:
|
|
#ifdef CONFIG_GPROF
|
|
#ifdef CONFIG_GPROF
|
|
_mcleanup();
|
|
_mcleanup();
|
|
@@ -428,10 +428,10 @@ abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long arg1,
|
|
|
|
|
|
record_syscall_start(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, 0, 0);
|
|
record_syscall_start(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, 0, 0);
|
|
|
|
|
|
- if(do_strace)
|
|
|
|
|
|
+ if (do_strace)
|
|
print_netbsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
print_netbsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
|
|
|
|
- switch(num) {
|
|
|
|
|
|
+ switch (num) {
|
|
case TARGET_NETBSD_NR_exit:
|
|
case TARGET_NETBSD_NR_exit:
|
|
#ifdef CONFIG_GPROF
|
|
#ifdef CONFIG_GPROF
|
|
_mcleanup();
|
|
_mcleanup();
|
|
@@ -507,10 +507,10 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1,
|
|
|
|
|
|
record_syscall_start(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, 0, 0);
|
|
record_syscall_start(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, 0, 0);
|
|
|
|
|
|
- if(do_strace)
|
|
|
|
|
|
+ if (do_strace)
|
|
print_openbsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
print_openbsd_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
|
|
|
|
- switch(num) {
|
|
|
|
|
|
+ switch (num) {
|
|
case TARGET_OPENBSD_NR_exit:
|
|
case TARGET_OPENBSD_NR_exit:
|
|
#ifdef CONFIG_GPROF
|
|
#ifdef CONFIG_GPROF
|
|
_mcleanup();
|
|
_mcleanup();
|