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

📄 page.s

📁 Linux 0.11 代码在不做修改的情况下,很难在现在的环境下这接编译通过(除非你能的到 10 几年前 Linus 用的那个版本的 gcc 什么的)。所以要对代码作少量修改(说说是少量花了好几小时的
💻 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_faultpage_fault:	xchgl %eax,(%esp)	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	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 + -