Search
lxdream.org :: lxdream :: r210:c356f597c896
lxdream 0.9.1
released Jun 29
Download Now
changeset210:c356f597c896
parent209:ff67a7b9aa17
child211:4c7ec3e3eb8a
authornkeynes
dateFri Aug 18 09:31:12 2006 +0000 (14 years ago)
Add float_read, float_write for fp registers
test/lib.h
1.1 --- a/test/lib.h Mon Aug 07 13:18:16 2006 +0000
1.2 +++ b/test/lib.h Fri Aug 18 09:31:12 2006 +0000
1.3 @@ -16,6 +16,8 @@
1.4 #define ASIC_IRQC2 0xA05f6938
1.5 #define IRQB0_MASK 0x0007B000
1.6
1.7 +#define float_read(A) (*((volatile float*)(A)))
1.8 +#define float_write(A, V) ( (*((volatile float*)(A))) = (V) )
1.9 #define long_read(A) (*((volatile unsigned long*)(A)))
1.10 #define long_write(A, V) ( (*((volatile unsigned long*)(A))) = (V) )
1.11 #define word_read(A) (*((volatile unsigned short*)(A)))
.