⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 page.s

📁 一份精简的linux内核源代码
💻 S
字号:
/* *  linux/mm/page.s * *  (C) 1991  Linus Torvalds *//* * page.s contains the low-level page-exception code. * the real work is done in mm.c */.globl _page_fault_page_fault:	xchgl %eax,(%esp)  /*取出错码到eax*/	pushl %ecx	pushl %edx	push %ds	push %es	push %fs	movl $0x10,%edx	mov %dx,%ds	mov %dx,%es	mov %dx,%fs	movl %cr2,%edx  	pushl %edx   /*将引起页异常的地址压栈*/	pushl %eax   /*将出错码压栈*/	testl $1,%eax   /*判断是缺页还是写保护(通过p值)*/	jne 1f	call _do_no_page	jmp 2f1:	call _do_wp_page2:	addl $8,%esp	pop %fs	pop %es	pop %ds	popl %edx	popl %ecx	popl %eax	iret

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -