Rev 869 | Rev 1124 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 869 | Rev 871 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | * |
42 | * |
43 | */ |
43 | */ |
44 | inline __address FADDR(void (* fptr)(void)) { |
44 | inline __address FADDR(void (* fptr)(void)) { |
45 | __address faddr; |
45 | __address faddr; |
46 | 46 | ||
- | 47 | /*Deprecated assembler version*/ |
|
- | 48 | /* |
|
47 | __asm__( |
49 | __asm__( |
48 | "nop 0;;" |
- | |
49 | "nop 0;;" |
- | |
50 | "nop 0;;" |
- | |
51 | "nop 0;;" |
- | |
52 | "nop 0;;" |
- | |
53 | "nop 0;;" |
- | |
54 | "nop 0;;" |
- | |
55 | "nop 0;;" |
- | |
56 | "ld8 %0 = [%1]\n\t" |
50 | "ld8 %0 = [%1]\n\t" |
57 | "nop 0;;" |
- | |
58 | "nop 0;;" |
- | |
59 | "nop 0;;" |
- | |
60 | "nop 0;;" |
- | |
61 | "nop 0;;" |
- | |
62 | "nop 0;;" |
- | |
63 | "nop 0;;" |
- | |
64 | "nop 0;;" |
- | |
65 | - | ||
66 | : "=r" (faddr) |
51 | : "=r" (faddr) |
67 | : "r" (fptr) |
52 | : "r" (fptr) |
68 | ); |
53 | ); |
- | 54 | */ |
|
69 | 55 | ||
70 | - | ||
71 | /*faddr = *((__address *)(fptr));;*/ |
56 | faddr = *((__address *)(fptr));; |
72 | return faddr; |
57 | return faddr; |
73 | } |
58 | } |
74 | 59 | ||
75 | #endif |
60 | #endif |