当前位置: 首页>>代码示例>>C++>>正文


C++ show_registers函数代码示例

本文整理汇总了C++中show_registers函数的典型用法代码示例。如果您正苦于以下问题:C++ show_registers函数的具体用法?C++ show_registers怎么用?C++ show_registers使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_registers函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: do_page_fault

void
do_page_fault(struct pt_regs *regs, unsigned int vector)
{
	/* Kernel space exception fixup check */
	if (fixup_exception(regs))
		return;

	unsigned long cr2 = read_cr2();

#ifdef CONFIG_KGDB
	kgdb_breakpoint();
#endif

	struct siginfo s;
	memset(&s, 0, sizeof(struct siginfo));
	s.si_signo = SIGSEGV;
	s.si_errno = 0;
	s.si_addr  = (void *)cr2;
	s.si_code  = SEGV_ACCERR; // SEGV_MAPERR;

	int i = sigsend(current->aspace->id, ANY_ID, SIGSEGV, &s);
	printk(">> PAGE FAULT! Sent signal %d. CR2 is %p, cpu %d\n", i, (void *)cr2, this_cpu);
	show_registers(regs);

	/* If the fault occurred in kernel space, or the init_task, go down */
	if ( (regs->rip >= PAGE_OFFSET) ||
	     (current->aspace->id == INIT_ASPACE_ID)) 
	{
		local_irq_disable();
		halt();
	}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:32,代码来源:interrupts.c

示例2: show

static int show(t_hydra_console *con, t_tokenline_parsed *p)
{
	mode_config_proto_t* proto = &con->mode->proto;
	int tokens_used;

	tokens_used = 0;
	if (p->tokens[1] == T_REGISTERS) {
		tokens_used++;
		show_registers(con);
	} else {

		switch(proto->dev_function) {
		case NFC_TYPEA:
			cprintf(con, "Protocol: TypeA (ISO14443A => MIFARE...)\r\n");
			break;
		case NFC_VICINITY:
			cprintf(con, "Protocol: Vicinity (ISO/IEC 15693)\r\n");
			break;
		default:
			cprintf(con, "Protocol: Unknown\r\n");
			break;
		}
	}

	return tokens_used;
}
开发者ID:jokingmeow,项目名称:hydrafw,代码行数:26,代码来源:hydranfc.c

示例3: show_regs

void show_regs(struct pt_regs *regs)
{
	extern void show_registers(struct pt_regs *regs);

	/* __PHX__ cleanup this mess */
	show_registers(regs);
}
开发者ID:8563,项目名称:millennium-sources,代码行数:7,代码来源:process.c

示例4: do_segment_not_present

void
do_segment_not_present(struct pt_regs *regs, unsigned int vector)
{
	printk("Segment Not Present Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例5: do_spurious_interrupt_bug

void
do_spurious_interrupt_bug(struct pt_regs *regs, unsigned int vector)
{
	printk("Spurious Interrupt Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例6: do_alignment_check

void
do_alignment_check(struct pt_regs *regs, unsigned int vector)
{
	printk("Alignment Check Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例7: do_machine_check

void
do_machine_check(struct pt_regs *regs, unsigned int vector)
{
	printk("Machine Check Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例8: do_general_protection

void
do_general_protection(struct pt_regs *regs, unsigned int vector)
{
	printk("General Protection Exception, cpu %d\n", this_cpu);
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例9: do_coprocessor_error

void
do_coprocessor_error(struct pt_regs *regs, unsigned int vector)
{
	printk("Coprocessor Error Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例10: show_regs

void show_regs(struct pt_regs *regs)
{
	extern void show_registers(struct pt_regs *regs);

	
	show_registers(regs);
}
开发者ID:Blackburn29,项目名称:PsycoKernel,代码行数:7,代码来源:process.c

示例11: do_coproc_segment_overrun

void
do_coproc_segment_overrun(struct pt_regs *regs, unsigned int vector)
{
	printk("Coprocessor Segment Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例12: die_if_kernel

/* This is normally the Oops function. */
void die_if_kernel(const char *str, struct pt_regs *regs, long err)
{
	if (user_mode(regs))
		return;

#ifdef CONFIG_ETRAX_WATCHDOG_NICE_DOGGY
	/*
	 * This printout might take too long and could trigger
	 * the watchdog normally. If NICE_DOGGY is set, simply
	 * stop the watchdog during the printout.
	 */
	stop_watchdog();
#endif

	oops_enter();
	handle_BUG(regs);

	pr_err("Linux %s %s\n", utsname()->release, utsname()->version);
	pr_err("%s: %04lx\n", str, err & 0xffff);

	show_registers(regs);

	oops_exit();
	oops_in_progress = 0;
	pr_err("\n"); /* Flush mtdoops.  */

#ifdef CONFIG_ETRAX_WATCHDOG_NICE_DOGGY
	reset_watchdog();
#endif
	do_exit(SIGSEGV);
}
开发者ID:EMFPGA,项目名称:linux_media,代码行数:32,代码来源:traps.c

示例13: do_invalid_tss

void
do_invalid_tss(struct pt_regs *regs, unsigned int vector)
{
	printk("Invalid TSS Exception)\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例14: do_double_fault

void
do_double_fault(struct pt_regs *regs, unsigned int vector)
{
	printk("Double Fault Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c

示例15: do_device_not_available

void
do_device_not_available(struct pt_regs *regs, unsigned int vector)
{
	printk("Device Not Available Exception\n");
	show_registers(regs);
	while (1) {}
}
开发者ID:HobbesOSR,项目名称:kitten,代码行数:7,代码来源:interrupts.c


注:本文中的show_registers函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。