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

📄 isr_clock.s

📁 linux1.0的源码
💻 S
字号:
/* isr_clock.s */
	.globl   _clock_isr
	.align   4
	
_clock_isr:

    /* save some registers */
	pushl	%eax
	pushl	%ds
	pushl	%es
	pushl	%fs
	pushl	%gs

    /* set our descriptors up to a DATA selector */
	movl    $0x10, %eax
	movw    %ax, %ds
	movw    %ax, %es
	movw    %ax, %fs
	movw    %ax, %gs

    /* call our clock routine */
	call	_ISR_clock

    /* clear the PIC (clock is a PIC interrupt) */
	movl    $0x20, %eax
	outb    %al, $0x20

    /* restor our regs */
	popl	%gs
	popl	%fs
	popl	%es
	popl	%ds
	popl	%eax
	iret

⌨️ 快捷键说明

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