When unmapping and remapping, the mem handle and mem tags can change. Do

not assume that they will remain the same.
This commit is contained in:
gdamore 2006-02-23 03:20:53 +00:00
parent 3ca20d0b44
commit 39b794a41d
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcmcia_cis.c,v 1.40 2005/12/11 12:23:23 christos Exp $ */
/* $NetBSD: pcmcia_cis.c,v 1.41 2006/02/23 03:20:53 gdamore Exp $ */
/*
* Copyright (c) 1997 Marc Horowitz. All rights reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis.c,v 1.40 2005/12/11 12:23:23 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis.c,v 1.41 2006/02/23 03:20:53 gdamore Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -446,6 +446,9 @@ pcmcia_scan_cis(dev, fct, arg)
longlink_addr, PCMCIA_CIS_SIZE,
&pcmh, &tuple.ptr, &window);
tuple.memt = pcmh.memt;
tuple.memh = pcmh.memh;
if (!longlink_common)
tuple.ptr /= 2;