Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Fix compilation problems.
details: https://anonhg.NetBSD.org/src/rev/a98c9ef0f2ca
branches: trunk
changeset: 519028:a98c9ef0f2ca
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Dec 09 23:08:34 2001 +0000
description:
Fix compilation problems.
diffstat:
sys/compat/netbsd32/netbsd32_core.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r aca782203ddc -r a98c9ef0f2ca sys/compat/netbsd32/netbsd32_core.c
--- a/sys/compat/netbsd32/netbsd32_core.c Sun Dec 09 23:05:56 2001 +0000
+++ b/sys/compat/netbsd32/netbsd32_core.c Sun Dec 09 23:08:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_core.c,v 1.1 2001/12/08 00:35:27 thorpej Exp $ */
+/* $NetBSD: netbsd32_core.c,v 1.2 2001/12/09 23:08:34 thorpej Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_core.c,v 1.1 2001/12/08 00:35:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_core.c,v 1.2 2001/12/09 23:08:34 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -61,6 +61,8 @@
#include <uvm/uvm.h>
+#include "netbsd32.h"
+
int
coredump_netbsd32(struct proc *p, struct vnode *vp, struct ucred *cred)
{
@@ -82,7 +84,7 @@
core.c_tsize = (u_long)ctob(vm->vm_tsize);
core.c_dsize = (u_long)ctob(vm->vm_dsize);
core.c_ssize = (u_long)round_page(ctob(vm->vm_ssize));
- error = cpu_coredump(p, vp, cred, &core);
+ error = cpu_coredump32(p, vp, cred, &core);
if (error)
return (error);
@@ -142,7 +144,7 @@
offset += core.c_seghdrsize;
error = vn_rdwr(UIO_WRITE, vp,
- (caddr_t)cseg.c_addr, (int)cseg.c_size,
+ (caddr_t)(long)cseg.c_addr, (int)cseg.c_size,
offset, UIO_USERSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
if (error)
Home |
Main Index |
Thread Index |
Old Index