Rev 3689 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3689 | Rev 3869 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | */ |
32 | */ |
33 | /** |
33 | /** |
34 | * @file |
34 | * @file |
35 | */ |
35 | */ |
36 | 36 | ||
37 | #include <stdio.h> |
37 | //#include <stdio.h> |
38 | #include "libtest.h" |
38 | #include "libtest.h" |
39 | 39 | ||
40 | static void kputint(unsigned i) |
40 | static void kputint(unsigned i) |
41 | { |
41 | { |
42 | // unsigned dummy; |
42 | // unsigned dummy; |
Line 47... | Line 47... | ||
47 | // : "d" (i) /* input */ |
47 | // : "d" (i) /* input */ |
48 | // : "%eax","%ecx" /* all scratch registers clobbered */ |
48 | // : "%eax","%ecx" /* all scratch registers clobbered */ |
49 | // ); |
49 | // ); |
50 | } |
50 | } |
51 | 51 | ||
- | 52 | int number = 137; |
|
- | 53 | ||
- | 54 | int test_fun2(void); |
|
- | 55 | ||
- | 56 | int test_fun2(void) |
|
- | 57 | { |
|
- | 58 | return number; |
|
- | 59 | } |
|
- | 60 | ||
52 | void test_func(void) |
61 | int test_func(void) |
53 | { |
62 | { |
54 | printf("Hello, this is 'test_func()' in libtest.so!\n"); |
63 | // printf("Hello, this is 'test_func()' in libtest.so!\n"); |
55 | // kputint(42); |
64 | // kputint(42); |
- | 65 | // return 42; |
|
56 | // while(1); |
66 | // while(1); |
- | 67 | return test_fun2(); |
|
57 | } |
68 | } |
58 | 69 | ||
59 | /** @} |
70 | /** @} |
60 | */ |
71 | */ |