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

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

?? sys_call.s

?? LINUX1.0源代碼,代碼條理清晰
?? S
字號:
/*
 *  linux/kernel/sys_call.S
 *
 *  Copyright (C) 1991, 1992  Linus Torvalds
 */

/*
 * sys_call.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) - %fs
 *	28(%esp) - %gs
 *	2C(%esp) - orig_eax
 *	30(%esp) - %eip
 *	34(%esp) - %cs
 *	38(%esp) - %eflags
 *	3C(%esp) - %oldesp
 *	40(%esp) - %oldss
 */

#include <linux/segment.h>

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

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

/*
 * these are offsets into the task-struct.
 */
state		=  0
counter		=  4
priority	=  8
signal		= 12
blocked		= 16
flags		= 20
errno		= 24
dbgreg6		= 52
dbgreg7		= 56

ENOSYS = 38

.globl _system_call,_lcall7
.globl _device_not_available, _coprocessor_error
.globl _divide_error,_debug,_nmi,_int3,_overflow,_bounds,_invalid_op
.globl _double_fault,_coprocessor_segment_overrun
.globl _invalid_TSS,_segment_not_present,_stack_segment
.globl _general_protection,_reserved
.globl _alignment_check,_page_fault
.globl ret_from_sys_call

#define SAVE_ALL \
	cld; \
	push %gs; \
	push %fs; \
	push %es; \
	push %ds; \
	pushl %eax; \
	pushl %ebp; \
	pushl %edi; \
	pushl %esi; \
	pushl %edx; \
	pushl %ecx; \
	pushl %ebx; \
	movl $(KERNEL_DS),%edx; \
	mov %dx,%ds; \
	mov %dx,%es; \
	movl $(USER_DS),%edx; \
	mov %dx,%fs;

#define RESTORE_ALL \
	cmpw $(KERNEL_CS),CS(%esp); \
	je 1f;   \
	movl _current,%eax; \
	movl dbgreg7(%eax),%ebx; \
	movl %ebx,%db7;	\
1:	popl %ebx; \
	popl %ecx; \
	popl %edx; \
	popl %esi; \
	popl %edi; \
	popl %ebp; \
	popl %eax; \
	pop %ds; \
	pop %es; \
	pop %fs; \
	pop %gs; \
	addl $4,%esp; \
	iret

.align 4
_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,%eax
	pushl %eax
	call _iABI_emulate
	popl %eax
	jmp ret_from_sys_call

.align 4
handle_bottom_half:
	pushfl
	incl _intr_count
	sti
	call _do_bottom_half
	popfl
	decl _intr_count
	jmp 9f
.align 4
reschedule:
	pushl $ret_from_sys_call
	jmp _schedule
.align 4
_system_call:
	pushl %eax			# save orig_eax
	SAVE_ALL
	movl $-ENOSYS,EAX(%esp)
	cmpl _NR_syscalls,%eax
	jae ret_from_sys_call
	movl _current,%ebx
	andl $~CF_MASK,EFLAGS(%esp)	# clear carry - assume no errors
	movl $0,errno(%ebx)
	movl %db6,%edx
	movl %edx,dbgreg6(%ebx)  # save current hardware debugging status
	testb $0x20,flags(%ebx)		# PF_TRACESYS
	jne 1f
	call _sys_call_table(,%eax,4)
	movl %eax,EAX(%esp)		# save the return value
	movl errno(%ebx),%edx
	negl %edx
	je ret_from_sys_call
	movl %edx,EAX(%esp)
	orl $(CF_MASK),EFLAGS(%esp)	# set carry to indicate error
	jmp ret_from_sys_call
.align 4
1:	call _syscall_trace
	movl ORIG_EAX(%esp),%eax
	call _sys_call_table(,%eax,4)
	movl %eax,EAX(%esp)		# save the return value
	movl _current,%eax
	movl errno(%eax),%edx
	negl %edx
	je 1f
	movl %edx,EAX(%esp)
	orl $(CF_MASK),EFLAGS(%esp)	# set carry to indicate error
1:	call _syscall_trace

	.align 4,0x90
ret_from_sys_call:
	cmpl $0,_intr_count
	jne 2f
	movl _bh_mask,%eax
	andl _bh_active,%eax
	jne handle_bottom_half
9:	movl EFLAGS(%esp),%eax		# check VM86 flag: CS/SS are
	testl $(VM_MASK),%eax		# different then
	jne 1f
	cmpw $(KERNEL_CS),CS(%esp)	# was old code segment supervisor ?
	je 2f
1:	sti
	orl $(IF_MASK),%eax		# these just try to make sure
	andl $~NT_MASK,%eax		# the program doesn't do anything
	movl %eax,EFLAGS(%esp)		# stupid
	cmpl $0,_need_resched
	jne reschedule
	movl _current,%eax
	cmpl _task,%eax			# task[0] cannot have signals
	je 2f
	cmpl $0,state(%eax)		# state
	jne reschedule
	cmpl $0,counter(%eax)		# counter
	je reschedule
	movl blocked(%eax),%ecx
	movl %ecx,%ebx			# save blocked in %ebx for signal handling
	notl %ecx
	andl signal(%eax),%ecx
	jne signal_return
2:	RESTORE_ALL
.align 4
signal_return:
	movl %esp,%ecx
	pushl %ecx
	testl $(VM_MASK),EFLAGS(%ecx)
	jne v86_signal_return
	pushl %ebx
	call _do_signal
	popl %ebx
	popl %ebx
	RESTORE_ALL
.align 4
v86_signal_return:
	call _save_v86_state
	movl %eax,%esp
	pushl %eax
	pushl %ebx
	call _do_signal
	popl %ebx
	popl %ebx
	RESTORE_ALL

.align 4
_divide_error:
	pushl $0		# no error code
	pushl $_do_divide_error
.align 4,0x90
error_code:
	push %fs
	push %es
	push %ds
	pushl %eax
	pushl %ebp
	pushl %edi
	pushl %esi
	pushl %edx
	pushl %ecx
	pushl %ebx
	movl $0,%eax
	movl %eax,%db7			# disable hardware debugging...
	cld
	movl $-1, %eax
	xchgl %eax, ORIG_EAX(%esp)	# orig_eax (get the error code. )
	xorl %ebx,%ebx			# zero ebx
	mov %gs,%bx			# get the lower order bits of gs
	xchgl %ebx, GS(%esp)		# get the address and save gs.
	pushl %eax			# push the error code
	lea 4(%esp),%edx
	pushl %edx
	movl $(KERNEL_DS),%edx
	mov %dx,%ds
	mov %dx,%es
	movl $(USER_DS),%edx
	mov %dx,%fs
	pushl %eax
	movl _current,%eax
	movl %db6,%edx
	movl %edx,dbgreg6(%eax)  # save current hardware debugging status
	popl %eax
	call *%ebx
	addl $8,%esp
	jmp ret_from_sys_call

.align 4
_coprocessor_error:
	pushl $0
	pushl $_do_coprocessor_error
	jmp error_code

.align 4
_device_not_available:
	pushl $-1		# mark this as an int
	SAVE_ALL
	pushl $ret_from_sys_call
	movl %cr0,%eax
	testl $0x4,%eax			# EM (math emulation bit)
	je _math_state_restore
	pushl $0		# temporary storage for ORIG_EIP
	call _math_emulate
	addl $4,%esp
	ret

.align 4
_debug:
	pushl $0
	pushl $_do_debug
	jmp error_code

.align 4
_nmi:
	pushl $0
	pushl $_do_nmi
	jmp error_code

.align 4
_int3:
	pushl $0
	pushl $_do_int3
	jmp error_code

.align 4
_overflow:
	pushl $0
	pushl $_do_overflow
	jmp error_code

.align 4
_bounds:
	pushl $0
	pushl $_do_bounds
	jmp error_code

.align 4
_invalid_op:
	pushl $0
	pushl $_do_invalid_op
	jmp error_code

.align 4
_coprocessor_segment_overrun:
	pushl $0
	pushl $_do_coprocessor_segment_overrun
	jmp error_code

.align 4
_reserved:
	pushl $0
	pushl $_do_reserved
	jmp error_code

.align 4
_double_fault:
	pushl $_do_double_fault
	jmp error_code

.align 4
_invalid_TSS:
	pushl $_do_invalid_TSS
	jmp error_code

.align 4
_segment_not_present:
	pushl $_do_segment_not_present
	jmp error_code

.align 4
_stack_segment:
	pushl $_do_stack_segment
	jmp error_code

.align 4
_general_protection:
	pushl $_do_general_protection
	jmp error_code

.align 4
_alignment_check:
	pushl $_do_alignment_check
	jmp error_code

.align 4
_page_fault:
	pushl $_do_page_fault
	jmp error_code

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产精品乱码不99| 欧美bbbbb| 爽好久久久欧美精品| 国产一区二区成人久久免费影院 | 精品一区二区免费在线观看| 成人黄色av网站在线| 精品少妇一区二区三区免费观看 | 欧美影院一区二区| 久久久久久9999| 日韩电影免费在线看| 色综合天天综合色综合av| 久久九九国产精品| 精品一区二区三区不卡| 337p亚洲精品色噜噜| 有码一区二区三区| 91玉足脚交白嫩脚丫在线播放| 精品国产制服丝袜高跟| 午夜私人影院久久久久| 91福利社在线观看| 亚洲精品一二三区| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 青青青伊人色综合久久| 欧美亚洲一区二区在线| 亚洲激情自拍偷拍| 99精品视频一区二区| 中文字幕一区二区三区精华液 | 色婷婷av一区二区三区gif| 国产欧美一区二区三区沐欲| 国产在线精品一区二区| 26uuu另类欧美| 国产剧情一区二区| 久久久精品一品道一区| 国产91精品一区二区麻豆网站 | 图片区日韩欧美亚洲| 欧美性高清videossexo| 亚洲国产日韩av| 欧美精品粉嫩高潮一区二区| 视频在线观看一区| 日韩免费成人网| 韩国精品久久久| 国产精品视频线看| 一本大道久久a久久综合婷婷| 亚洲男帅同性gay1069| 在线观看日韩国产| 日本成人在线不卡视频| 日韩欧美一区二区视频| 国产美女精品一区二区三区| 欧美高清在线一区| 在线观看中文字幕不卡| 日本午夜一本久久久综合| 亚洲精品一区在线观看| 成人做爰69片免费看网站| 亚洲欧美国产三级| 欧美日韩精品免费| 极品尤物av久久免费看| 国产精品国产自产拍高清av王其| 色婷婷久久久综合中文字幕| 视频一区二区三区在线| 久久久久久久久岛国免费| av综合在线播放| 视频在线观看一区| 中文字幕av一区二区三区高 | 欧美一区二区国产| 国产精品1024久久| 欧美一区二区在线播放| 韩国一区二区三区| 亚洲天堂av一区| 日韩欧美综合在线| 99国产精品一区| 蜜臀av性久久久久蜜臀aⅴ四虎| 久久精品日产第一区二区三区高清版| 9l国产精品久久久久麻豆| 日韩va欧美va亚洲va久久| 国产精品美女久久久久久| 宅男在线国产精品| www.av精品| 男人的天堂亚洲一区| 中文字幕中文字幕在线一区 | 欧美不卡激情三级在线观看| 精品亚洲欧美一区| 亚洲欧美国产高清| 久久蜜桃一区二区| 欧美日韩国产免费| 成人免费毛片a| 国内成人精品2018免费看| 一区二区三区四区激情| 久久九九99视频| 欧美一区二区三区免费观看视频| 成人高清伦理免费影院在线观看| 蜜臀av国产精品久久久久| 一区二区三区电影在线播| 中文字幕国产精品一区二区| 蜜桃视频免费观看一区| 国产欧美va欧美不卡在线| 欧美精品自拍偷拍| 91免费在线视频观看| 国产传媒一区在线| 成人精品小蝌蚪| 蜜臀av性久久久久蜜臀aⅴ| 亚洲成人你懂的| 亚洲欧美日韩系列| 国产精品国产a级| 欧美激情资源网| 国产亚洲精品福利| 日本一区二区免费在线| 2023国产精品| 久久亚洲综合av| 久久综合九色综合97_久久久| 欧美一区国产二区| 91麻豆精品久久久久蜜臀| 欧美日韩和欧美的一区二区| 在线观看中文字幕不卡| 欧美主播一区二区三区| 在线观看一区不卡| 欧洲av一区二区嗯嗯嗯啊| 色噜噜狠狠成人中文综合| 91免费看`日韩一区二区| av成人老司机| 色婷婷亚洲精品| 欧美日韩小视频| 亚洲精品v日韩精品| 亚洲男人电影天堂| 亚洲一区二区视频| 亚洲成人激情自拍| 日本午夜一本久久久综合| 美女视频黄久久| 福利视频网站一区二区三区| 成人一级片网址| 91老师片黄在线观看| 欧美午夜电影在线播放| 91精品久久久久久久91蜜桃| 久久综合久色欧美综合狠狠| 日本一区二区三区视频视频| 亚洲精品一二三区| 免费av网站大全久久| 国产大片一区二区| 日本电影欧美片| 日韩天堂在线观看| 国产精品美女一区二区三区| 一区二区三区精品| 日本vs亚洲vs韩国一区三区| 国产成人精品综合在线观看| 91蜜桃网址入口| 欧美一区欧美二区| 国产精品护士白丝一区av| 午夜精品久久久久久久| 国产精品一区二区三区乱码| 97久久超碰精品国产| 91麻豆精品国产91久久久久| 国产无一区二区| 亚洲国产成人高清精品| 国产乱一区二区| 欧美体内she精高潮| 久久色成人在线| 亚洲国产日韩在线一区模特| 国产精品1区二区.| 欧美精品九九99久久| 国产精品毛片a∨一区二区三区| 亚洲超丰满肉感bbw| 懂色av一区二区三区蜜臀| 在线不卡a资源高清| 亚洲天堂成人网| 国产一区二区三区在线观看免费 | 欧美成人vps| 亚洲黄网站在线观看| 国产高清精品在线| 91精品国产福利| 亚洲蜜臀av乱码久久精品蜜桃| 久久国产生活片100| 欧美午夜片在线观看| 中文字幕中文字幕中文字幕亚洲无线| 麻豆成人综合网| 欧美体内she精高潮| 亚洲色图另类专区| 国产经典欧美精品| 精品卡一卡二卡三卡四在线| 亚洲国产一区视频| 99免费精品在线| 国产欧美精品国产国产专区| 黑人巨大精品欧美黑白配亚洲| 欧美剧情电影在线观看完整版免费励志电影| 久久久久久久综合日本| 免费观看在线综合色| 欧美精品aⅴ在线视频| 夜夜操天天操亚洲| 色综合色综合色综合色综合色综合 | 国产精品不卡在线| 国产成人精品综合在线观看| www亚洲一区| 国产美女娇喘av呻吟久久| 精品少妇一区二区三区免费观看| 日本不卡一区二区三区| 欧美日韩国产bt| 午夜精品久久久久影视| 欧美三级蜜桃2在线观看| 一区二区三区在线视频免费| 色综合欧美在线视频区| 亚洲综合999| 欧美精品日日鲁夜夜添| 午夜电影一区二区三区|