* Object_loader_patch
@ 2010-03-31 14:00 Stanislav Karpenko
2010-04-01 13:19 ` Object_loader_patch John Dallaway
0 siblings, 1 reply; 2+ messages in thread
From: Stanislav Karpenko @ 2010-03-31 14:00 UTC (permalink / raw)
To: ecos-patches
[-- Attachment #1: Type: text/plain, Size: 708 bytes --]
Dear developers,
I have discovered a minor defect in ECOS Object loader package. It is
related with CYG_LDR_TABLE_KAPI_MUTEX() definition placed in
cyg/objloader/objelf.h. In details, there are ALMOST all ECOS API
cyg_mutex_XXX functions placed under CYG_LDR_TABLE_KAPI_MUTEX().
Important, that ALMOST all, but not absolutely all. Fuction
cyg_mutex_lock has been omitted I don't know why. Of course a simple
way to fix this issue without any ECOS repository changes is to use
construction like this
CYG_LDR_TABLE_ENTRY(cyg_mutex_lock_entry, "cyg_mutex_lock", &cyg_mutex_lock );
but I thing a better way to fix it under ECOS repository. Therefore I
propose a special patch attached.
Best regards,
Stanislav
[-- Attachment #2: objelf.h.patch --]
[-- Type: text/x-diff, Size: 1486 bytes --]
diff --git a/packages/services/objloader/current/ChangeLog b/packages/services/objloader/current/ChangeLog
--- a/packages/services/objloader/current/ChangeLog
+++ b/packages/services/objloader/current/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-03 Stanislav Karpenko <s.o.karpenko@gmail.com>
+
+ * include/objelf.h: Add missed entry to CYG_LDR_TABLE_KAPI_MUTEX
+ definition (cyg_mutex_lock_entry).
+
2009-10-09 John Dallaway <john@dallaway.org.uk>
* cdl/objloader.cdl: Eliminate workarounds for file path handling
diff --git a/packages/services/objloader/current/include/objelf.h b/packages/services/objloader/current/include/objelf.h
--- a/packages/services/objloader/current/include/objelf.h
+++ b/packages/services/objloader/current/include/objelf.h
@@ -342,6 +342,8 @@ CYG_LDR_TABLE_ENTRY(cyg_mutex_init_entry
"cyg_mutex_init", cyg_mutex_init); \
CYG_LDR_TABLE_ENTRY(cyg_mutex_destroy_entry, \
"cyg_mutex_destroy", cyg_mutex_destroy); \
+CYG_LDR_TABLE_ENTRY(cyg_mutex_lock_entry, \
+ "cyg_mutex_lock", cyg_mutex_lock); \
CYG_LDR_TABLE_ENTRY(cyg_mutex_trylock_entry, \
"cyg_mutex_trylock", cyg_mutex_trylock); \
CYG_LDR_TABLE_ENTRY(cyg_mutex_unlock_entry, \
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Object_loader_patch
2010-03-31 14:00 Object_loader_patch Stanislav Karpenko
@ 2010-04-01 13:19 ` John Dallaway
0 siblings, 0 replies; 2+ messages in thread
From: John Dallaway @ 2010-04-01 13:19 UTC (permalink / raw)
To: Stanislav Karpenko; +Cc: ecos-patches
Hi Stanislav
Stanislav Karpenko wrote:
> I have discovered a minor defect in ECOS Object loader package. It is
> related with CYG_LDR_TABLE_KAPI_MUTEX() definition placed in
> cyg/objloader/objelf.h. In details, there are ALMOST all ECOS API
> cyg_mutex_XXX functions placed under CYG_LDR_TABLE_KAPI_MUTEX().
> Important, that ALMOST all, but not absolutely all. Fuction
> cyg_mutex_lock has been omitted I don't know why. Of course a simple
> way to fix this issue without any ECOS repository changes is to use
> construction like this
>
> CYG_LDR_TABLE_ENTRY(cyg_mutex_lock_entry, "cyg_mutex_lock", &cyg_mutex_lock );
>
> but I thing a better way to fix it under ECOS repository. Therefore I
> propose a special patch attached.
Thank you for the patch. Now checked-in.
John Dallaway
eCos maintainer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-01 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-31 14:00 Object_loader_patch Stanislav Karpenko
2010-04-01 13:19 ` Object_loader_patch John Dallaway
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).