From: Matthew Wilcox <willy@thepuffingroup.com>
To: parisc-linux@thepuffingroup.com
Subject: [parisc-linux] PDC calls on the C3000
Date: Mon, 17 Jan 2000 10:57:34 -0500 [thread overview]
Message-ID: <20000117105734.L11300@thepuffingroup.com> (raw)
I've been asked to explain what was going wrong with the PDC calls on
the C3000. Here's what was going on:
ldil L%real_stack, 29 ; our stack pointer
ldo R%real_stack(29),29
tophys 29
tophys is a macro which was doing:
depi 0,1,2,gr
So the CPU was helpfully sign-extending the address of real_stack and
before the tophys macro was called we had the value
0xffff'ffff'c0xx'xxxx
in r29. The tophys macro was clearing the `c' to leave us with
0xffff'ffff'00xx'xxxx
which would work if PDC recognised we were being called from narrow mode
(presumably PDC does on C360 hardware, or we wouldn't've had it working
on that machine).
I changed the tophys macro to:
zdep gr, 31, 30, gr
which takes the rightmost 30 bits from the register, zeroes the whole
register and then stores them back into it:
0xffff'ffff'c0xx'xxxx
becomes
0x0000'0000'00xx'xxxx
and now PDC is happy, and so am I.
next reply other threads:[~2000-01-17 16:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-17 15:57 Matthew Wilcox [this message]
2000-01-17 18:02 ` [parisc-linux] PDC calls on the C3000 Grant Grundler
2000-01-17 18:34 ` Matthew Wilcox
2000-01-17 18:48 ` Alex deVries
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=20000117105734.L11300@thepuffingroup.com \
--to=willy@thepuffingroup.com \
--cc=parisc-linux@thepuffingroup.com \
/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