Hi all,

I have a problem with a pcmcia memory card in that it
causes the system to panic on a Sparc platform.

The pcmcia.c module from opensolaris (and I think its
in s10 8/07 also) causes the system to panic (in
various places) when a pcmcia memory card is
reinserted, eg.  ...

  insert pcmcia memory
     - systems sees it and brings up CDE file manager
  eject and remove card
  reinsert pcmcia memory
     - system panics sometimes
     - or it panic when card is removed

I'm using the pcmcia.c module from opensolaris to get
our Tadpole Solaris 10 8/07 to work. So ...

  1. when card is inserted it allocates ppd memory

  2. when card is removed it calls
pcmcia_ppd_free(ppd)
     to free the ppd and other mem using kmem_free()
     (in function SocketServices())

  3. when card is reinserted it looks in the dip
    (device information) and finds the
     address of the ppd that it freed in (2). Which
     I think causes it to panic in various places due
     to NULL pointers, invalid frees, etc.

So the question is, should the pcmcia.c code after it
has freed the ppd memory do anything else to the 'dip'
data to tell it that this ppd has been freed?

The only way I have found of getting it to work is to
remove the call to  pcmcia_ppd_free(ppd) in
SocketServices()  so it can happily reuse that 
memory.

Any help would be appreciated.

Thanks
Paul
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to