mt6_exit.asm

来自「小型操作系统,以VC为开发环境,需要boachs调试」· 汇编 代码 · 共 37 行

ASM
37
字号
;/***************************************************************************
;**     File name   : mt6_exit.asm
;**     Author      : 
;**     Create date :
;**
;**	  Comments:
;**		Exit point for task & threads.
;**	
;**     Revisions:
;**     $Log: mt6_exit.asm,v $
;**     Revision 1.1.1.1  2005/07/27 06:53:15  x.cheng
;**     add into repositories
;**
;**
;***************************************************************************/
[global __Task_Exit_Point]

align 4096

; // Exit point for task and threads.
; // This is the only page of the kernel that must be
; // available for execution from the user privilege level.

__Task_Exit_Point:
	push	eax			; // Push the return value.

l:	
	xor	eax, eax	; // Invoke the exit syscall.
	
	;int	$0x80
	
	ret

	jmp	l

align 4096
__Task_Exit_Point_End:

⌨️ 快捷键说明

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