On Friday 08 April 2005 09:12, Bodo Stroesser wrote:
> Blaisorblade wrote:
> > On Wednesday 06 April 2005 15:27, Bodo Stroesser wrote:
> >>s390 implementation is *not* included in tarball, this will
> >>be posted later, when thing are more stable.
>
> Thank you for all your comments!
>
> I don't wan't to give to the wide world, before it is more stable.
> But maybe this can answer some of your questions / remarks.
I assume you already sent it to Jeff, so I'm not forwarding it.

Now, some more little issues:

* arch_fixup() should be implemented but cannot cause problems currently. UML 
currently does not use the .fixup mechanism (which requires using some asm() 
inserts - maybe that can be limited to gas pseudo-instruction without real 
code), but only the fault_catcher and fault_address one, which is an inferior 
design (some runtime cost). Last time I looked there were some difficulties 
about 

* ARCH_SIGHDLR_PARAM works like I feared - you'd probably need {} (or do {} 
while (0)) around the ARCH_GET_SIGCONTEXT because you declare a var at the 
beginning... and that function will likely break if not commented (because who 
patches the code won't go checking what actually happens).

I also understand why you can't use the trick used elsewhere... I have no 
better solution than long comments.

* About ptrace_faultinfo: Jeff said that S390 "has complex fault 
informations", while they seem not very complicate inside the S390 patch (I 
was asking about the generalization of the "is_write" fault info). I want to 
know this for the purpose of working on a mergeable version of 
PTRACE_FAULTINFO (which will probably be an extension of PTRACE_SIGINFO)

Probably struct thread_struct has a more correct definition of those info... 
and arch/s390/mm/fault.c:do_exception even more. However, only some of that 
will be needed; we only need, in practise, the write/read (and maybe exec) 
type of the exception. 

Also, I've given a look and it wouldn't be difficult making PTRACE_SIGPENDING, 
just a bit long: update asm-generic/siginfo.h: struct siginfo : _sigfault 
(maybe depending on the arch), and all the callers.

* for glibc-bug.c, you might as well use an "alias, weak" attribute - see the 
below from asm-i386/unistd.h:

/*
 * "Conditional" syscalls
 *
 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
 * but it doesn't work on all toolchains, so we just do it by hand
 */
#ifndef cond_syscall
#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
#endif

Note that the asm code only contains pseudo-op so it should work as-is on 
s390, right?

Other issues follow, which refer to copied code going out-of-date wrt. my 
local tree (which I have snapshotted some time ago, after I started writing 
this mail). This is the problem with copying code - and you're starting 
experiencing it!

* important changes for TLS support, clone(), and so on.

* add a CHOOSE_MODE to arch_switch (since the current code is used only in TT 
mode) - I'm going to start calling it from SKAS mode and actually needing it 
for TLS support. Some changes to ptrace_user.c will also happen.

* CONFIG_64_BIT must become CONFIG_64BIT, as I'm doing for the other UML 
subarchs (the '_' is bogus, by comparison with other 64-bit archs). Also I'll 
have to clean up the Makefiles (USER_OBJS got fixed finally - they got 
dependency tracking, and the common boilerplate code is now in 
arch/um/scripts/Makefile.rules - more stuff has shifted there since when you 
did the patch). And there's no need to readd the end "Emacs" comments, we are 
gradually getting rid of them. However, I'll take care myself of all these 
trivial QA (quality assurance) issues.

-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to