From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <438D61CD.7000701@domain.hid> Date: Wed, 30 Nov 2005 09:24:45 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig00FF88808D210C948279E39F" Sender: jan.kiszka@domain.hid Subject: [Xenomai-core] [patch] fix SMI and proc cleanup List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai-core This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig00FF88808D210C948279E39F Content-Type: multipart/mixed; boundary="------------070000070604050504020508" This is a multi-part message in MIME format. --------------070000070604050504020508 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hi, the smaller the bug is, the longer it takes to track. The first one in this patch was such an issue. It prevented the SMI workaround to do its job because the related PCI ID table got "optimised" away (SVN trunk only). The second one is also SVN-only. It fixes the proc-fs cleanup of the nucleus when being used as a module. I also removed some special character from a name in the ChangeLog. Please apply! Jan --------------070000070604050504020508 Content-Type: text/x-patch; name="smi_and_proc_fix.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="smi_and_proc_fix.patch" Index: ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ChangeLog (Revision 208) +++ ChangeLog (Arbeitskopie) @@ -1,3 +1,11 @@ +2005-11-30 Jan Kiszka + + * ksrc/arch/i386/smi.c: Remove __initdata from rthal_smi_pci_tbl + to make table persistent. + + * ksrc/nucleus/module.c (__xeno_sys_exit): Reorder proc-fs + cleanup to avoid stalled entries. + 2005-11-29 Philippe Gerum =20 * ksrc/nucleus/pipe.c (xnpipe_recv): Remove superfluous timeout @@ -623,7 +631,7 @@ =20 * nucleus/module.c: Revamp /proc/xenomai/{sched,stat} output format. =20 -2005-08-31 St=E9phane Fillod +2005-08-31 Stephane Fillod =20 * skins/rtai/fifo.c (__fifo_pkg_init): fix missing init of flush queue handles. Index: ksrc/arch/i386/smi.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ksrc/arch/i386/smi.c (Revision 208) +++ ksrc/arch/i386/smi.c (Arbeitskopie) @@ -31,7 +31,7 @@ #include #include =20 -static struct pci_device_id rthal_smi_pci_tbl[] __initdata =3D { +static struct pci_device_id rthal_smi_pci_tbl[] =3D { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AA_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AB_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_0) }, Index: ksrc/nucleus/module.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ksrc/nucleus/module.c (Revision 208) +++ ksrc/nucleus/module.c (Arbeitskopie) @@ -817,6 +817,10 @@ { xnpod_shutdown(XNPOD_NORMAL_EXIT); =20 +#if defined(__KERNEL__) && defined(CONFIG_PROC_FS) + xnpod_delete_proc(); +#endif /* __KERNEL__ && CONFIG_PROC_FS */ + xnarch_exit(); =20 #ifdef __KERNEL__ @@ -830,9 +834,6 @@ #ifdef CONFIG_LTT xnltt_umount(); #endif /* CONFIG_LTT */ -#ifdef CONFIG_PROC_FS - xnpod_delete_proc(); -#endif /* CONFIG_PROC_FS */ #endif /* __KERNEL__ */ =20 if (nkmsgbuf) --------------070000070604050504020508-- --------------enig00FF88808D210C948279E39F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDjWHQniDOoMHTA+kRAjnLAJ9bpiD32S8LcBhaKUax9ForJIvleACffhp0 ANxXcOu8CWgkTJDnlMeo7X0= =sroA -----END PGP SIGNATURE----- --------------enig00FF88808D210C948279E39F--