All pastes #441083 Raw Edit

Stuff

public c v1 · immutable
·published 2007-04-15 14:18 UTC
rendered paste body
// arch/mips/ar7/prom.cchar * __init prom_getenv(char *name){	int i;printk("[ENV]:\tLooking for: %s\n", name);	for (i = 0; (i < MAX_ENTRY) && adam2_env[i].name; i++) {printk("[ENV]:\tadam2_env[%d] = { \"%s\", \"%s\" }\n", i, adam2_env[i].name, adam2_env[i].value);		if (!strcmp(name, adam2_env[i].name)) {			return adam2_env[i].value;		}	}printk("[ENV]:\t%s not found!\n", i, adam2_env[i].name, adam2_env[i].value);	return NULL;}// my module....  dprintf(4, "reading \"oam_lb_timeout\"\n");  pLbTimeout = prom_getenv("oam_lb_timeout");  dprintf(4, "readed \"oam_lb_timeout\"\n");.../* the result, just after insmodreading "oam_lb_timeout"do_cpu invoked from kernel context![#1]:Cpu 0$ 0   : 00000000 10008400 9433fca8 94310e90$ 4   : c00fc484 000026eb 00000001 9436b5f4$ 8   : 9435e640 94310000 94360000 94360000$12   : 94360000 00000c00 948be084 948be0c4$16   : c00e9714 94f5c800 c0100000 940a2000$20   : 00000016 00000016 c00bc000 c0105308$24   : 948be568 c00e715c$28   : 949d6000 949d7df8 c01052cc c00ec58cHi    : 0000004aLo    : c0862800epc   : 94340000 mem_init+0x68/0x3b4     Tainted: Pra    : c00ec58c tn7sar_init+0x300/0x3e8 [tiatm]Status: 10008403    KERNEL EXL IECause : 1080002cPrId  : 00018448Modules linked in: tiatm(P) pppoatm ipt_TTL ipt_ttl ipt_TOS ipt_time ipt_tos xt_MARK xt_mark xt_mac xt_length ipt_ECN ipt_ecn xt_CLASSIFY imq ipt_IMQ ipt_layer7 ipt_ipp2p xt_portProcess insmod (pid: 1418, threadinfo=949d6000, task=943f6958)Stack : 94124c00 c00fc460 0000000d 00000013 00000070 949d7e18 00000000 00000016        00000044 94f7a580 948be000 00000001 940a2000 c0105488 940a2000 94e5ca00        94124c00 940a2000 c00a0160 c00a0148 94e266a8 c00fb080 00000000 00000000        00000000 c01052c0 94134b18 94134b0c 94e266a8 949fd880 94310000 94e5ce00        c01052c0 94e5cfc4 00000016 94148b94 00000000 c01052cc c01052cc 00000000        ...Call Trace:[<94340000>] mem_init+0x68/0x3b4[<c00ec58c>] tn7sar_init+0x300/0x3e8 [tiatm][<c00a0160>] tn7atm_detect+0x160/0x54c [tiatm][<94148b94>] sys_init_module+0x1628/0x18a0[<9410cb80>] stack_done+0x20/0x3cCode: 00000000  00000000  00000000 <464c457f> 00010101  00000000  00000000  00080002  00000001 */