亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? entry.s

?? 包括初始化、進程管理、進程通信、內存管理、設備管理、中斷、文件系統、系統調用等精選源碼分析。
?? S
?? 第 1 頁 / 共 2 頁
字號:
/*
 *  linux/arch/i386/entry.S
 *
 *  Copyright (C) 1991, 1992  Linus Torvalds
 */

/*
 * entry.S contains the system-call and fault low-level handling routines.
 * This also contains the timer-interrupt handler, as well as all interrupts
 * and faults that can result in a task-switch.
 *
 * NOTE: This code handles signal-recognition, which happens every time
 * after a timer-interrupt and after each system call.
 *
 * I changed all the .align's to 4 (16 byte alignment), as that's faster
 * on a 486.
 *
 * Stack layout in 'ret_from_system_call':
 * 	ptrace needs to have all regs on the stack.
 *	if the order here is changed, it needs to be
 *	updated in fork.c:copy_process, signal.c:do_signal,
 *	ptrace.c and ptrace.h
 *
 *	 0(%esp) - %ebx
 *	 4(%esp) - %ecx
 *	 8(%esp) - %edx
 *       C(%esp) - %esi
 *	10(%esp) - %edi
 *	14(%esp) - %ebp
 *	18(%esp) - %eax
 *	1C(%esp) - %ds
 *	20(%esp) - %es
 *	24(%esp) - orig_eax
 *	28(%esp) - %eip
 *	2C(%esp) - %cs
 *	30(%esp) - %eflags
 *	34(%esp) - %oldesp
 *	38(%esp) - %oldss
 *
 * "current" is in register %ebx during any slow entries.
 */

#include <linux/config.h>
#include <linux/sys.h>
#include <linux/linkage.h>
#include <asm/segment.h>
#define ASSEMBLY
#include <asm/smp.h>

EBX		= 0x00
ECX		= 0x04
EDX		= 0x08
ESI		= 0x0C
EDI		= 0x10
EBP		= 0x14
EAX		= 0x18
DS		= 0x1C
ES		= 0x20
ORIG_EAX	= 0x24
EIP		= 0x28
CS		= 0x2C
EFLAGS		= 0x30
OLDESP		= 0x34
OLDSS		= 0x38

CF_MASK		= 0x00000001
IF_MASK		= 0x00000200
NT_MASK		= 0x00004000
VM_MASK		= 0x00020000

/*
 * these are offsets into the task-struct.
 */
state		=  0
flags		=  4
sigpending	=  8
addr_limit	= 12
exec_domain	= 16
need_resched	= 20
tsk_ptrace	= 24
processor	= 52

ENOSYS = 38


#define SAVE_ALL \
	cld; \
	pushl %es; \
	pushl %ds; \
	pushl %eax; \
	pushl %ebp; \
	pushl %edi; \
	pushl %esi; \
	pushl %edx; \
	pushl %ecx; \
	pushl %ebx; \
	movl $(__KERNEL_DS),%edx; \
	movl %edx,%ds; \
	movl %edx,%es;

#define RESTORE_ALL	\
	popl %ebx;	\
	popl %ecx;	\
	popl %edx;	\
	popl %esi;	\
	popl %edi;	\
	popl %ebp;	\
	popl %eax;	\
1:	popl %ds;	\
2:	popl %es;	\
	addl $4,%esp;	\
3:	iret;		\
.section .fixup,"ax";	\
4:	movl $0,(%esp);	\
	jmp 1b;		\
5:	movl $0,(%esp);	\
	jmp 2b;		\
6:	pushl %ss;	\
	popl %ds;	\
	pushl %ss;	\
	popl %es;	\
	pushl $11;	\
	call do_exit;	\
.previous;		\
.section __ex_table,"a";\
	.align 4;	\
	.long 1b,4b;	\
	.long 2b,5b;	\
	.long 3b,6b;	\
.previous

#define GET_CURRENT(reg) \
	movl $-8192, reg; \
	andl %esp, reg

ENTRY(lcall7)
	pushfl			# We get a different stack layout with call gates,
	pushl %eax		# which has to be cleaned up later..
	SAVE_ALL
	movl EIP(%esp),%eax	# due to call gates, this is eflags, not eip..
	movl CS(%esp),%edx	# this is eip..
	movl EFLAGS(%esp),%ecx	# and this is cs..
	movl %eax,EFLAGS(%esp)	#
	movl %edx,EIP(%esp)	# Now we move them to their "normal" places
	movl %ecx,CS(%esp)	#
	movl %esp,%ebx
	pushl %ebx
	andl $-8192,%ebx	# GET_CURRENT
	movl exec_domain(%ebx),%edx	# Get the execution domain
	movl 4(%edx),%edx	# Get the lcall7 handler for the domain
	pushl $0x7
	call *%edx
	addl $4, %esp
	popl %eax
	jmp ret_from_sys_call

ENTRY(lcall27)
	pushfl			# We get a different stack layout with call gates,
	pushl %eax		# which has to be cleaned up later..
	SAVE_ALL
	movl EIP(%esp),%eax	# due to call gates, this is eflags, not eip..
	movl CS(%esp),%edx	# this is eip..
	movl EFLAGS(%esp),%ecx	# and this is cs..
	movl %eax,EFLAGS(%esp)	#
	movl %edx,EIP(%esp)	# Now we move them to their "normal" places
	movl %ecx,CS(%esp)	#
	movl %esp,%ebx
	pushl %ebx
	andl $-8192,%ebx	# GET_CURRENT
	movl exec_domain(%ebx),%edx	# Get the execution domain
	movl 4(%edx),%edx	# Get the lcall7 handler for the domain
	pushl $0x27
	call *%edx
	addl $4, %esp
	popl %eax
	jmp ret_from_sys_call


ENTRY(ret_from_fork)
	pushl %ebx
	call SYMBOL_NAME(schedule_tail)
	addl $4, %esp
	GET_CURRENT(%ebx)
	testb $0x02,tsk_ptrace(%ebx)	# PT_TRACESYS
	jne tracesys_exit
	jmp	ret_from_sys_call

/*
 * Return to user mode is not as complex as all this looks,
 * but we want the default path for a system call return to
 * go as quickly as possible which is why some of this is
 * less clear than it otherwise should be.
 */

ENTRY(system_call)
	pushl %eax			# save orig_eax
	SAVE_ALL
	GET_CURRENT(%ebx)
	cmpl $(NR_syscalls),%eax
	jae badsys
	testb $0x02,tsk_ptrace(%ebx)	# PT_TRACESYS
	jne tracesys
	call *SYMBOL_NAME(sys_call_table)(,%eax,4)
	movl %eax,EAX(%esp)		# save the return value
ENTRY(ret_from_sys_call)
#ifdef CONFIG_SMP
	movl processor(%ebx),%eax
	shll $CONFIG_X86_L1_CACHE_SHIFT,%eax
	movl SYMBOL_NAME(irq_stat)(,%eax),%ecx		# softirq_active
	testl SYMBOL_NAME(irq_stat)+4(,%eax),%ecx	# softirq_mask
#else
	movl SYMBOL_NAME(irq_stat),%ecx		# softirq_active
	testl SYMBOL_NAME(irq_stat)+4,%ecx	# softirq_mask
#endif
	jne   handle_softirq
	
ret_with_reschedule:
	cmpl $0,need_resched(%ebx)
	jne reschedule
	cmpl $0,sigpending(%ebx)
	jne signal_return
restore_all:
	RESTORE_ALL

	ALIGN
signal_return:
	sti				# we can get here from an interrupt handler
	testl $(VM_MASK),EFLAGS(%esp)
	movl %esp,%eax
	jne v86_signal_return
	xorl %edx,%edx
	call SYMBOL_NAME(do_signal)
	jmp restore_all

	ALIGN
v86_signal_return:
	call SYMBOL_NAME(save_v86_state)
	movl %eax,%esp
	xorl %edx,%edx
	call SYMBOL_NAME(do_signal)
	jmp restore_all

	ALIGN
tracesys:
	movl $-ENOSYS,EAX(%esp)
	call SYMBOL_NAME(syscall_trace)
	movl ORIG_EAX(%esp),%eax
	cmpl $(NR_syscalls),%eax
	jae tracesys_exit
	call *SYMBOL_NAME(sys_call_table)(,%eax,4)
	movl %eax,EAX(%esp)		# save the return value
tracesys_exit:
	call SYMBOL_NAME(syscall_trace)
	jmp ret_from_sys_call
badsys:
	movl $-ENOSYS,EAX(%esp)
	jmp ret_from_sys_call

	ALIGN
ret_from_exception:
#ifdef CONFIG_SMP
	GET_CURRENT(%ebx)
	movl processor(%ebx),%eax
	shll $CONFIG_X86_L1_CACHE_SHIFT,%eax
	movl SYMBOL_NAME(irq_stat)(,%eax),%ecx		# softirq_active
	testl SYMBOL_NAME(irq_stat)+4(,%eax),%ecx	# softirq_mask
#else
	movl SYMBOL_NAME(irq_stat),%ecx		# softirq_active
	testl SYMBOL_NAME(irq_stat)+4,%ecx	# softirq_mask
#endif
	jne   handle_softirq

ENTRY(ret_from_intr)
	GET_CURRENT(%ebx)
	movl EFLAGS(%esp),%eax		# mix EFLAGS and CS
	movb CS(%esp),%al
	testl $(VM_MASK | 3),%eax	# return to VM86 mode or non-supervisor?
	jne ret_with_reschedule
	jmp restore_all

	ALIGN
handle_softirq:
	call SYMBOL_NAME(do_softirq)
	jmp ret_from_intr
	
	ALIGN
reschedule:
	call SYMBOL_NAME(schedule)    # test
	jmp ret_from_sys_call

ENTRY(divide_error)
	pushl $0		# no error code
	pushl $ SYMBOL_NAME(do_divide_error)
	ALIGN
error_code:
	pushl %ds
	pushl %eax
	xorl %eax,%eax
	pushl %ebp
	pushl %edi
	pushl %esi
	pushl %edx
	decl %eax			# eax = -1
	pushl %ecx
	pushl %ebx
	cld
	movl %es,%ecx
	movl ORIG_EAX(%esp), %esi	# get the error code
	movl ES(%esp), %edi		# get the function address
	movl %eax, ORIG_EAX(%esp)
	movl %ecx, ES(%esp)
	movl %esp,%edx
	pushl %esi			# push the error code
	pushl %edx			# push the pt_regs pointer
	movl $(__KERNEL_DS),%edx
	movl %edx,%ds
	movl %edx,%es
	GET_CURRENT(%ebx)
	call *%edi
	addl $8,%esp
	jmp ret_from_exception

ENTRY(coprocessor_error)
	pushl $0
	pushl $ SYMBOL_NAME(do_coprocessor_error)
	jmp error_code

ENTRY(simd_coprocessor_error)
	pushl $0
	pushl $ SYMBOL_NAME(do_simd_coprocessor_error)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久久免费桃花| 美女一区二区视频| 国产精品乱码人人做人人爱| 久久久精品2019中文字幕之3| 日韩一区二区三区四区五区六区| 在线91免费看| 欧美一级二级在线观看| 欧美一区二区精品在线| 欧美一区二区视频在线观看2022| 91麻豆精品国产91| 日韩三级中文字幕| 亚洲精品一区二区三区福利| 国产婷婷一区二区| 国产精品初高中害羞小美女文| 国产精品日日摸夜夜摸av| 一区在线观看免费| 一区二区三区丝袜| 日韩成人伦理电影在线观看| 精品一区二区三区视频在线观看 | 樱桃视频在线观看一区| 一区二区三区四区乱视频| 亚洲成a人v欧美综合天堂下载 | 成人免费视频视频在线观看免费| 东方欧美亚洲色图在线| 一本久道久久综合中文字幕| 欧美午夜精品理论片a级按摩| 欧美精品xxxxbbbb| 26uuu另类欧美| 最新国产成人在线观看| 天堂在线亚洲视频| 国产自产高清不卡| 色哟哟在线观看一区二区三区| 欧美亚洲尤物久久| 日韩精品影音先锋| 国产精品久久久久久久久免费相片| 亚洲激情图片qvod| 免费观看一级欧美片| 国产精品一级片| 色综合激情五月| 日韩亚洲欧美高清| 国产精品热久久久久夜色精品三区| 亚洲一区二区综合| 国内精品国产成人国产三级粉色 | 色美美综合视频| 欧美一区二区三区日韩| 亚洲国产精品成人综合色在线婷婷| 亚洲男人的天堂一区二区| 久久99精品久久久久婷婷| 91社区在线播放| 欧美成人性战久久| 1024成人网| 久久av中文字幕片| 色偷偷一区二区三区| 日韩一区二区中文字幕| √…a在线天堂一区| 美女一区二区视频| 欧美午夜不卡视频| 国产欧美视频在线观看| 午夜影视日本亚洲欧洲精品| 国产激情精品久久久第一区二区| 欧美日韩中字一区| 中文字幕一区在线| 捆绑调教美女网站视频一区| 在线国产亚洲欧美| 国产欧美日韩另类视频免费观看| 亚洲第一综合色| 99久久综合色| 久久青草欧美一区二区三区| 天堂资源在线中文精品| 91在线你懂得| 日本一区二区免费在线观看视频 | 亚洲资源在线观看| 高清不卡一区二区| 日韩情涩欧美日韩视频| 亚洲综合视频在线观看| 成人av网站免费| 久久你懂得1024| 日本不卡在线视频| 欧美日韩亚洲综合在线 | 大白屁股一区二区视频| 精品国产第一区二区三区观看体验 | 国产人久久人人人人爽| 久久精品国产亚洲a| 6080国产精品一区二区| 亚洲一区二区三区视频在线播放| 成人黄色一级视频| 中文字幕av一区二区三区| 国产一区二区三区| 日韩视频一区二区| 日本不卡的三区四区五区| 欧美二区三区91| 天使萌一区二区三区免费观看| 欧美色欧美亚洲另类二区| 亚洲美女在线一区| 91在线观看地址| 亚洲免费观看高清完整| 色综合久久精品| 一级特黄大欧美久久久| 91蝌蚪porny| 亚洲免费在线播放| 91福利区一区二区三区| 亚洲国产精品久久久久婷婷884| 91黄视频在线| 亚洲成人免费视频| 欧美日本一区二区在线观看| 五月天激情综合网| 在线综合亚洲欧美在线视频| 免费久久99精品国产| 日韩欧美一区二区不卡| 日本aⅴ精品一区二区三区| 日韩欧美一区在线观看| 久久99精品网久久| 久久久久久免费毛片精品| 国产福利一区二区三区视频| 日本一区二区久久| 99re成人在线| 亚洲成av人片在www色猫咪| 欧美一级日韩免费不卡| 韩国v欧美v日本v亚洲v| 国产亚洲一二三区| 99精品久久只有精品| 一区二区三区高清| 91精品福利在线一区二区三区 | 蜜臀国产一区二区三区在线播放| 欧美sm极限捆绑bd| 成人精品国产福利| 亚洲一二三四在线观看| 日韩一区二区中文字幕| 国产精品一区二区你懂的| 亚洲天堂福利av| 欧美视频在线观看一区| 免费日本视频一区| 国产欧美一区二区三区沐欲| 日本精品一区二区三区四区的功能| 亚洲va欧美va人人爽| 精品免费国产一区二区三区四区| 国产91丝袜在线播放0| 亚洲男女毛片无遮挡| 91精品国产综合久久精品图片| 国产原创一区二区| 亚洲精品第1页| 精品久久人人做人人爽| 99精品久久只有精品| 日韩成人一区二区三区在线观看| 久久久精品综合| 欧美唯美清纯偷拍| 韩国视频一区二区| 一区二区三区欧美日| 欧美大片日本大片免费观看| 欧美另类z0zxhd电影| 国产经典欧美精品| 亚洲国产精品欧美一二99| 久久亚洲捆绑美女| 欧美性猛片xxxx免费看久爱| 国产一区激情在线| 亚洲一区在线观看视频| 久久女同精品一区二区| 欧美日韩精品一区二区三区四区 | 蜜桃免费网站一区二区三区| 国产精品卡一卡二卡三| 欧美一级高清片| 91激情在线视频| 国产99一区视频免费| 香蕉成人啪国产精品视频综合网| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲影院理伦片| 国产女主播在线一区二区| 欧美一区二区视频在线观看 | 最新日韩av在线| 精品国产百合女同互慰| 在线观看一区二区精品视频| 成人免费电影视频| 国产在线观看免费一区| 天天影视涩香欲综合网| 一区二区三区中文字幕| 中文字幕精品三区| 欧美成人精品福利| 777精品伊人久久久久大香线蕉| 97久久精品人人做人人爽| 国产酒店精品激情| 另类人妖一区二区av| 亚洲网友自拍偷拍| 一区二区在线电影| 国产精品精品国产色婷婷| 久久精品这里都是精品| 精品欧美乱码久久久久久| 欧美日韩国产一区| 欧美亚州韩日在线看免费版国语版| 成人av在线一区二区三区| 国产麻豆视频一区二区| 蜜臀av国产精品久久久久| 亚洲国产毛片aaaaa无费看| 国产精品久99| 亚洲欧美影音先锋| 中文字幕一区二区三区av| 欧美—级在线免费片| 久久精品综合网| 国产欧美一区在线| 国产精品人人做人人爽人人添| 久久精品夜色噜噜亚洲a∨|