diff options
author | dfr <dfr@FreeBSD.org> | 2002-05-26 16:03:13 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2002-05-26 16:03:13 +0000 |
commit | e8d149b2f764dc40d5530a9deac9d39ccfcb1d30 (patch) | |
tree | 747d067ea43b73a9967eed2f57e33a79f442340d /sys/powerpc/aim | |
parent | 82d31a36d4b510fecf30b24f498fefac37cd4240 (diff) | |
download | FreeBSD-src-e8d149b2f764dc40d5530a9deac9d39ccfcb1d30.zip FreeBSD-src-e8d149b2f764dc40d5530a9deac9d39ccfcb1d30.tar.gz |
Add declarations of suword32 and suword64. Add implementations of one or
the other (or both) to all the platforms. Similar for fuword32 and
fuword64.
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/copyinout.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/powerpc/aim/copyinout.c b/sys/powerpc/aim/copyinout.c index cab274c..70789ac 100644 --- a/sys/powerpc/aim/copyinout.c +++ b/sys/powerpc/aim/copyinout.c @@ -265,6 +265,13 @@ suword(void *addr, long word) } int +suword32(void *addr, u_int32_t word) +{ + return (suword(addr, word)); +} + + +int fubyte(const void *addr) { struct thread *td; @@ -314,3 +321,9 @@ fuword(const void *addr) td->td_pcb->pcb_onfault = NULL; return (val); } + +u_int32_t +fuword32(const void *addr) +{ + return (fuword(addr)); +} |