Skip to contentSkip to conversation

Jan Kiszka : nucleus: Allow drop_u_mode syscall from any context

Xenomai-core Gilles Chanteperdrix 2 participants 4 messages Jun 28, 2011 – Jun 29, 2011 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · GIT version control
Module: xenomai-jki
Branch: for-upstream
Commit: 5597470d84584846875e8a35309e6302c768addf
URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=5597470d84584846875e8a35309e6302c768addf
Author: Jan Kiszka <[email protected]>
Date:   Tue Jun 28 22:10:07 2011 +0200

nucleus: Allow drop_u_mode syscall from any context

Quoted 7 lines

xnshadow_sys_drop_u_mode already checks if the caller is a shadow. It does that without issuing a warning message if the check fails - in contrast to do_hisyscall_event. As user space may call this cleanup service even for non-shadow threads (e.g. after shadow creation failed), we better silence this warning.

Jan,

I have a branch here, which allocates u_mode in the shared heap, so, this syscall is about to become unnecessary.

See:
http://git.xenomai.org/?p=xenomai-gch.git;a=shortlog;h=refs/heads/u_mode

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 19 lines · Gilles Chanteperdrix
Quoted 10 lines · GIT version control
Module: xenomai-jki
Branch: for-upstream
Commit: 5597470d84584846875e8a35309e6302c768addf
URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=5597470d84584846875e8a35309e6302c768addf
Author: Jan Kiszka <[email protected]>
Date:   Tue Jun 28 22:10:07 2011 +0200

nucleus: Allow drop_u_mode syscall from any context

Quoted 7 lines

xnshadow_sys_drop_u_mode already checks if the caller is a shadow. It does that without issuing a warning message if the check fails - in contrast to do_hisyscall_event. As user space may call this cleanup service even for non-shadow threads (e.g. after shadow creation failed), we better silence this warning.

Quoted 7 lines

Jan,

I have a branch here, which allocates u_mode in the shared heap, so, this syscall is about to become unnecessary.

See:
http://git.xenomai.org/?p=xenomai-gch.git;a=shortlog;h=refs/heads/u_mode

Even better. When do you plan to merge all this? I'd like to finally fix the various MPS fastlock breakages, specifically as they overlap with other issues there.

Jan

#3 lore raw
Quoted 25 lines · Jan Kiszka
Quoted 24 lines · Gilles Chanteperdrix
Quoted 10 lines · GIT version control
Module: xenomai-jki
Branch: for-upstream
Commit: 5597470d84584846875e8a35309e6302c768addf
URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=5597470d84584846875e8a35309e6302c768addf
Author: Jan Kiszka <[email protected]>
Date:   Tue Jun 28 22:10:07 2011 +0200

nucleus: Allow drop_u_mode syscall from any context

Quoted 7 lines

xnshadow_sys_drop_u_mode already checks if the caller is a shadow. It does that without issuing a warning message if the check fails - in contrast to do_hisyscall_event. As user space may call this cleanup service even for non-shadow threads (e.g. after shadow creation failed), we better silence this warning.

Jan,

I have a branch here, which allocates u_mode in the shared heap, so, this syscall is about to become unnecessary.

Quoted 6 lines
Quoted 2 lines

See:
http://git.xenomai.org/?p=xenomai-gch.git;a=shortlog;h=refs/heads/u_mode

Even better. When do you plan to merge all this? I'd like to finally fix the various MPS fastlock breakages, specifically as they overlap with other issues there.

I would like to give a chance to Philippe to have a look at it before it is merged (especially the commit using an adeos ptd).

Normally, the MPS fastlock issues are solved in this branch.

Signature · 1 line
                                                                Gilles.
#4 lore raw
Quoted 29 lines · Gilles Chanteperdrix
Quoted 28 lines · Jan Kiszka
Quoted 26 lines · Gilles Chanteperdrix
Quoted 10 lines · GIT version control
Module: xenomai-jki
Branch: for-upstream
Commit: 5597470d84584846875e8a35309e6302c768addf
URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=5597470d84584846875e8a35309e6302c768addf
Author: Jan Kiszka <[email protected]>
Date:   Tue Jun 28 22:10:07 2011 +0200

nucleus: Allow drop_u_mode syscall from any context

Quoted 7 lines

xnshadow_sys_drop_u_mode already checks if the caller is a shadow. It does that without issuing a warning message if the check fails - in contrast to do_hisyscall_event. As user space may call this cleanup service even for non-shadow threads (e.g. after shadow creation failed), we better silence this warning.

Jan,

I have a branch here, which allocates u_mode in the shared heap, so, this syscall is about to become unnecessary.

See:
http://git.xenomai.org/?p=xenomai-gch.git;a=shortlog;h=refs/heads/u_mode

Quoted 6 lines
Quoted 3 lines

Even better. When do you plan to merge all this? I'd like to finally fix the various MPS fastlock breakages, specifically as they overlap with other issues there.

I would like to give a chance to Philippe to have a look at it before it is merged (especially the commit using an adeos ptd).

OK.

Quoted 2 lines

Normally, the MPS fastlock issues are solved in this branch.

Only the previously discussed leak. MSP-disabled is still oopsing, and error clean up is also broken - but not only for MPS.

I'll base my fixes on top of your branch.

Jan