diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-19 08:58:08 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-19 08:58:08 +0000 |
commit | d8afae924f4db99650aa0df115c6ae66ed02b950 (patch) | |
tree | a2cbc045f0eb624a394f8e45fea1a58ecf1faaf0 /sys/arch/mac68k/dev/grf.c | |
parent | 4a6c79ff4f05aaae32458104529a9a9e0d3d208b (diff) |
UBC was a disaster. It worked very good when it worked, but on some
machines or some configurations or in some phase of the moon (we actually
don't know when or why) files disappeared. Since we've not been able to
track down the problem in two weeks intense debugging and we need -current
to be stable, back out everything to a state it had before UBC.
We apologise for the inconvenience.
Diffstat (limited to 'sys/arch/mac68k/dev/grf.c')
-rw-r--r-- | sys/arch/mac68k/dev/grf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/grf.c b/sys/arch/mac68k/dev/grf.c index c11cbc5da35..34aeb896c27 100644 --- a/sys/arch/mac68k/dev/grf.c +++ b/sys/arch/mac68k/dev/grf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf.c,v 1.19 2001/11/28 13:47:38 art Exp $ */ +/* $OpenBSD: grf.c,v 1.20 2001/12/19 08:58:05 art Exp $ */ /* $NetBSD: grf.c,v 1.41 1997/02/24 06:20:04 scottr Exp $ */ /* @@ -391,6 +391,7 @@ grfunmap(dev, addr, p) { struct grf_softc *gp; vm_size_t size; + int rv; gp = grf_cd.cd_devs[GRFUNIT(dev)]; @@ -404,8 +405,8 @@ grfunmap(dev, addr, p) size = round_page(gp->sc_grfmode->fbsize); - uvm_unmap(&p->p_vmspace->vm_map, (vm_offset_t)addr, + rv = uvm_unmap(&p->p_vmspace->vm_map, (vm_offset_t)addr, (vm_offset_t)addr + size); - return (0); + return (rv == 0 ? 0 : EINVAL); } |