Rev 534 | Rev 871 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 869 | ||
---|---|---|---|
Line 43... | Line 43... | ||
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 | __asm__( |
47 | __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;;" |
|
48 | "ld8 %0 = [%1]\n\t" |
56 | "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 | ||
49 | : "=r" (faddr) |
66 | : "=r" (faddr) |
50 | : "r" (fptr) |
67 | : "r" (fptr) |
51 | ); |
68 | ); |
52 | 69 | ||
- | 70 | ||
- | 71 | /*faddr = *((__address *)(fptr));;*/ |
|
53 | return faddr; |
72 | return faddr; |
54 | } |
73 | } |
55 | 74 | ||
56 | #endif |
75 | #endif |