From: Carlos O'Donell <carlos@baldric.uwo.ca>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] Implementing cancellable syscalls for PA in glibc 2.3.2
Date: Fri, 21 Mar 2003 01:58:08 -0500 [thread overview]
Message-ID: <20030321065808.GC7182@systemhalted> (raw)
PA,
I _know_ in all my PA travels I've seen assembly to do these bits, but
currently my sleepy brain says "write the list, and collate tomorrow."
N.B. It must be assembly, it's GAS, and this will live in glibc, if you
really want to know I'm writing the cancellable syscall support so we
can have a building 2.3.2 :)
---
Task A: Get single thread pointer.
mfctl cr27, r4;
* Then I need to load r4->p_header.multiple_threads somehow?*
* I don't really know if I can just load the struct offset *
* without worrying that GCC's padded things... *
* Also need to check if this value is non-zero, subtract 1? *
Task B: Save space on the stack.
stwm r4, STACKSPACE(sp);
Task C: Restore space from stack.
ldwm -STACKSPACE(sp), r4;
Task D: Push an arg onto the stack.
stw r2[6543], OFFSET(sp);
* Remembering that it's 4 bytes per store *
Task E: Get an arg from the stack.
ldw -OFFSET(sp), r2[6543];
---
Comments and help is welcome :)
c.
reply other threads:[~2003-03-21 6:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030321065808.GC7182@systemhalted \
--to=carlos@baldric.uwo.ca \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox