亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国内成人自拍视频| 制服丝袜av成人在线看| 国产精品久久久久影院老司| 丰满放荡岳乱妇91ww| 国产精品美女一区二区| 色88888久久久久久影院按摩| 亚洲一区二区在线视频| 欧美精品一二三四| 久久99精品国产麻豆婷婷洗澡| 精品噜噜噜噜久久久久久久久试看| 麻豆一区二区99久久久久| 国产偷国产偷精品高清尤物| 91小视频免费观看| 婷婷成人激情在线网| 欧美精品一区二区久久婷婷| 国产激情偷乱视频一区二区三区| 综合网在线视频| 中文一区在线播放| 欧美亚洲国产一卡| 国产精一区二区三区| 亚洲视频精选在线| 日韩欧美国产系列| 成人av影视在线观看| 丝袜美腿亚洲色图| 久久综合色8888| 在线观看日韩毛片| 国产九色精品成人porny| 亚洲永久免费视频| 精品国产乱码久久久久久浪潮 | 91在线视频观看| 青娱乐精品视频在线| 日本一区二区不卡视频| 欧美日韩一区二区三区高清| 国产成人啪免费观看软件| 一区二区三区四区激情| 久久久一区二区三区| 色婷婷av一区二区三区大白胸| 蜜臀91精品一区二区三区| 精品国产乱码久久| 亚洲综合免费观看高清完整版 | 国产91高潮流白浆在线麻豆| 亚洲自拍欧美精品| 亚洲国产经典视频| 日韩欧美卡一卡二| 欧美综合视频在线观看| 成人激情动漫在线观看| 免费亚洲电影在线| 亚洲国产精品久久久久秋霞影院| 欧美韩日一区二区三区| 欧美成人伊人久久综合网| 91麻豆自制传媒国产之光| 国产精品99久久久久| 日韩av电影免费观看高清完整版 | 欧美人妇做爰xxxⅹ性高电影 | 一区二区三区高清不卡| 亚洲国产成人午夜在线一区| 欧美刺激脚交jootjob| 欧美日韩中文精品| 色婷婷久久一区二区三区麻豆| 国产a久久麻豆| 国产乱淫av一区二区三区| 午夜不卡av免费| 亚洲国产成人91porn| 亚洲精品少妇30p| 日韩久久一区二区| 国产精品理论在线观看| 国产视频一区二区在线观看| 久久一区二区视频| 久久久精品人体av艺术| 久久一区二区三区四区| 久久精品一区二区三区不卡牛牛| 日韩一级二级三级| 日韩精品一区二区三区四区| 欧美一级二级三级蜜桃| 91麻豆精品国产91| 这里只有精品视频在线观看| 91精品蜜臀在线一区尤物| 欧美日韩国产不卡| 欧美精三区欧美精三区| 8x福利精品第一导航| 91精品国产全国免费观看 | 99国产一区二区三精品乱码| 成人性视频网站| 99久久久免费精品国产一区二区| 99国产精品久久久久久久久久| 不卡的av网站| 色综合久久88色综合天天| 欧洲一区在线观看| 欧美日韩在线综合| 欧美一级久久久| 久久精品人人做| 国产精品每日更新| 一区二区三区欧美激情| 天堂一区二区在线| 麻豆久久久久久久| 国产在线精品一区二区夜色| 国产乱淫av一区二区三区 | 91国偷自产一区二区开放时间| 在线日韩一区二区| 欧美一个色资源| 久久综合色天天久久综合图片| 国产精品情趣视频| 亚洲一区二区av在线| 青青草精品视频| 国产精品资源站在线| 91丝袜美腿高跟国产极品老师 | 成人永久aaa| 日本乱人伦aⅴ精品| 欧美一区二区三区免费大片| 久久久五月婷婷| 亚洲欧美电影一区二区| 日韩av午夜在线观看| 国产精品1区2区3区| 在线观看国产精品网站| 精品福利一区二区三区| 亚洲人成在线播放网站岛国| 日韩成人一级片| 不卡一区二区三区四区| 欧美男女性生活在线直播观看| 久久精品一二三| 亚洲成年人网站在线观看| 国产99精品国产| 91麻豆精品国产综合久久久久久| 国产欧美精品在线观看| 婷婷六月综合亚洲| 成人福利在线看| 日韩美女在线视频| 亚洲精品久久久久久国产精华液| 极品瑜伽女神91| 精品视频一区三区九区| 国产精品久久99| 国产米奇在线777精品观看| 欧美中文字幕一区| 中文字幕精品在线不卡| 免费一级欧美片在线观看| 在线视频欧美精品| 中文字幕av一区二区三区高 | 亚洲综合小说图片| 国产精品88888| 欧美一区二区三区视频在线观看| 亚洲视频在线一区| 国产suv精品一区二区三区| 精品国产123| 麻豆成人在线观看| 欧美精品久久一区| 亚洲综合在线五月| 91丝袜美腿高跟国产极品老师| 精品国产91久久久久久久妲己| 男人的j进女人的j一区| 欧美日本一区二区在线观看| 中文字幕欧美一区| 国产酒店精品激情| 精品国产自在久精品国产| 五月激情丁香一区二区三区| 一本大道久久a久久精二百| 国产精品久久精品日日| 成人avav影音| 中文字幕永久在线不卡| 福利视频网站一区二区三区| 国产拍欧美日韩视频二区| 久国产精品韩国三级视频| 日韩三级高清在线| 老司机精品视频一区二区三区| 7777精品伊人久久久大香线蕉完整版| 亚洲一区二区三区国产| 欧美三级韩国三级日本三斤| 亚洲第一主播视频| 538在线一区二区精品国产| 午夜精品成人在线视频| 在线成人av网站| 免费美女久久99| 亚洲精品在线观| 成人一区二区三区| 国产一区二区网址| 久久久午夜电影| 成人一级黄色片| 亚洲另类在线制服丝袜| 91久久精品日日躁夜夜躁欧美| 亚洲一区在线观看视频| 欧美卡1卡2卡| 另类小说欧美激情| 久久久久9999亚洲精品| 成人h动漫精品一区二区| 一区二区三区资源| 91精品黄色片免费大全| 国内精品视频一区二区三区八戒| 欧美国产精品v| 色婷婷激情久久| 久久福利视频一区二区| 国产区在线观看成人精品| 91免费观看视频在线| 午夜精品成人在线视频| 久久综合久久综合久久综合| av中文字幕亚洲| 亚洲成人一区二区| 2021中文字幕一区亚洲| 99国产精品99久久久久久| 日韩av在线发布| 国产精品国产三级国产aⅴ入口 | 成人免费在线观看入口|