Eric Biederman | 83b991a | 2003-10-11 06:20:25 +0000 | [diff] [blame] | 1 | #include "linux_syscall.h" |
| 2 | #include "linux_console.h" |
| 3 | |
| 4 | struct socket_desc { |
| 5 | short up; |
| 6 | short down; |
| 7 | short across; |
| 8 | }; |
| 9 | |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 10 | static void main(void) |
Eric Biederman | 83b991a | 2003-10-11 06:20:25 +0000 | [diff] [blame] | 11 | { |
| 12 | static const struct socket_desc cpu_socketsA[] = { |
| 13 | { .up = 2, .down = -1, .across = 1 }, /* Node 0 */ |
| 14 | { .up = 3, .down = -1, .across = 0 }, /* Node 1 */ |
| 15 | { .up = -1, .down = 0, .across = 3 }, /* Node 2 */ |
| 16 | { .up = -1, .down = 1, .across = 2 } /* Node 3 */ |
| 17 | }; |
| 18 | static const struct socket_desc cpu_socketsB[4] = { |
| 19 | { 2, -1, 1 }, /* Node 0 */ |
| 20 | { 3, -1, 0 }, /* Node 1 */ |
| 21 | { -1, 0, 3 }, /* Node 2 */ |
| 22 | { -1, 1, 2 } /* Node 3 */ |
| 23 | }; |
| 24 | int i; |
| 25 | print_debug("cpu_socketA\n"); |
| 26 | for(i = 0; i < sizeof(cpu_socketsA)/sizeof(cpu_socketsA[0]); i++) { |
| 27 | print_debug(".up="); |
| 28 | print_debug_hex16(cpu_socketsA[i].up); |
| 29 | print_debug(" .down="); |
| 30 | print_debug_hex16(cpu_socketsA[i].down); |
| 31 | print_debug(" .across="); |
| 32 | print_debug_hex16(cpu_socketsA[i].across); |
| 33 | print_debug("\n"); |
| 34 | } |
| 35 | print_debug("\ncpu_socketB\n"); |
| 36 | for(i = 0; i < sizeof(cpu_socketsB)/sizeof(cpu_socketsB[0]); i++) { |
| 37 | print_debug(".up="); |
| 38 | print_debug_hex16(cpu_socketsB[i].up); |
| 39 | print_debug(" .down="); |
| 40 | print_debug_hex16(cpu_socketsB[i].down); |
| 41 | print_debug(" .across="); |
| 42 | print_debug_hex16(cpu_socketsB[i].across); |
| 43 | print_debug("\n"); |
| 44 | } |
| 45 | _exit(0); |
| 46 | } |