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

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

?? romboot.s

?? 開放源碼實時操作系統源碼.
?? S
字號:
##=============================================================================
##
##      romboot.S
##
##      x86 romboot
##
##=============================================================================
#####ECOSGPLCOPYRIGHTBEGIN####
## -------------------------------------------
## This file is part of eCos, the Embedded Configurable Operating System.
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
##
## eCos is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free
## Software Foundation; either version 2 or (at your option) any later version.
##
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
## for more details.
##
## You should have received a copy of the GNU General Public License along
## with eCos; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
##
## As a special exception, if other files instantiate templates or use macros
## or inline functions from this file, or you compile this file and link it
## with other works to produce a work based on this file, this file does not
## by itself cause the resulting work to be covered by the GNU General Public
## License. However the source code for this file must still be made available
## in accordance with section (3) of the GNU General Public License.
##
## This exception does not invalidate any other reasons why a work based on
## this file might be covered by the GNU General Public License.
##
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
## at http://sources.redhat.com/ecos/ecos-license/
## -------------------------------------------
#####ECOSGPLCOPYRIGHTEND####
##=============================================================================
#######DESCRIPTIONBEGIN####
##
## Author(s):   jskov
## Contributors:jskov
## Date:        1999-01-07
## Purpose:     x86 romboot
## Description: When booting from ROM we need to run a short sequence of real
##		mode code before jumping into 32 bit protected mode. There are
##              problems in GAS with mixing all this code together, and it is
##              easier to just move this bit of code out to a separate file.
##              
##
######DESCRIPTIONEND####
##
##=============================================================================


#include <pkgconf/system.h>
#include <pkgconf/hal.h>

#include <cyg/hal/arch.inc>

#==============================================================================

//    .file   "romboot.S"

#------------------------------------------------------------------------------

	.code16

romboot_start:			
	/* Disable interrupt handling. */
	cli

	# Set DS == CS
	movw	%cs,%ax
	movw	%ax,%ds
	# set ES == 0
	movw	$0,%ax
	movw	%ax,%es

	# Call video bios to init display
  	movw	$0xc000,%bx
	movw  	%bx,%ds
  	movw  	0x0000,%ax
  	movw  	$0x0000,%bx
  	movw  	%bx,%ds
	cmpw  	$0xAA55,%ax
  	jne  	1f
	.byte	0x9a		# lcall
	.word	0x0003		# offset
	.word   0xc000		# segment
1:
	
	movw	%cs,%ax
	movw	%ax,%ds
	# set ES == 0
	movw	$0,%ax
	movw	%ax,%es

	# build a GDT descriptor in memory at location zero
	movw	$(gdtEnd - gdtStart),%ax
	movw	%ax,%es:0
	lea	gdtStart,%ax
	addw	$0xFF00,%ax
	movw	%ax,%es:2
	movw	$0x000F,%ax
	movw	%ax,%es:4
	
	# load GDTR
	lgdt	%es:0

	# Switch to protected mode.
	movl	%cr0,%eax
	orb	$1, %al
	movl	%eax,%cr0

	# and do a jump to flush instruction prefetch
	jmp	romboot_pm

	hlt

	.align	4, 0xCC
gdtStart:
	/* Selector 0x00 == invalid. */
	.word	0x0000
	.word	0x0000
	.byte	0x00
	.byte	0x00
	.byte	0x00
	.byte	0x00

	/* Selector 0x08 == code. */
	.word	0xFFFF
	.word	0x0000
	.byte	0x00
	.byte	0x9B
	.byte	0xCF
	.byte	0x00

	/* Selector 0x10 == data. */
	.word	0xFFFF
	.word	0x0000
	.byte	0x00
	.byte	0x93
	.byte	0xCF
	.byte	0x00

	/* Selector 0x18 == shorter code: faults any code 
         * access 0xF0000000-0xFFFFFFFF.
         */
	.word	0xFFFF
	.word	0x0000
	.byte	0x00
	.byte	0x9B
	.byte	0xC7
	.byte	0x00

	/* Selector 0x20 == data; faults any access 0xF0000000-0xFFFFFFFF. */
	.word	0xFFFF
	.word	0x0000
	.byte	0x00
	.byte	0x93
	.byte	0xC7
	.byte	0x00

	.align	4, 0xCC
gdtEnd:

	# We arrive here in protected mode
romboot_pm:	

	# Load data selectors
	movw	$0x10, %ax
	movw	%ax, %ds
	movw	%ax, %es
	movw	%ax, %fs
	movw	%ax, %gs
	
	# jump to start of ROM, where the PM code starts	
#	ljmp	$8,$0xF0000
	.byte	0x66,0xea	# opsize + ljmp opcode
	.long	0x000F0000	# destination address
	.word	0x0008		# code selector

	.code16

	.org	0xF0
romboot_reset:		
	jmp	romboot_start

	.org	0x100
	
#------------------------------------------------------------------------------
# end of romboot.S

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影一二三区| 日韩精品成人一区二区三区| 日韩欧美国产一区二区三区| 欧亚一区二区三区| 欧美午夜精品久久久久久孕妇 | 欧洲在线/亚洲| 91麻豆产精品久久久久久 | 一区二区成人在线| 亚洲人成影院在线观看| 亚洲精品视频在线观看免费| 一区二区三区日韩精品视频| 亚洲影院理伦片| 奇米精品一区二区三区四区 | 91久久精品一区二区| 91蝌蚪国产九色| 欧美优质美女网站| 在线播放视频一区| 欧美成人艳星乳罩| 中文字幕不卡的av| 一区二区三区电影在线播| 亚洲一区二区三区不卡国产欧美 | 久久亚洲春色中文字幕久久久| 精品欧美一区二区在线观看| 国产亚洲精品7777| 亚洲主播在线观看| 国产在线视频精品一区| 成人sese在线| 欧美精品在线一区二区三区| 精品国产sm最大网站| 国产精品三级av| 丝袜美腿亚洲综合| 国产成人午夜99999| 色综合天天综合在线视频| 欧美肥妇free| 国产精品乱码一区二三区小蝌蚪| 一区二区三区日韩欧美| 激情久久五月天| 欧美色电影在线| 国产日韩精品一区二区浪潮av| 一区二区久久久| 国产自产2019最新不卡| 91国偷自产一区二区三区观看 | 国产成人自拍高清视频在线免费播放| 91色porny蝌蚪| 久久影院视频免费| 偷拍一区二区三区四区| 成人免费观看视频| 精品sm捆绑视频| 亚洲高清一区二区三区| 97成人超碰视| 日本一区二区三区四区| 青青国产91久久久久久| 91精品福利视频| 成人免费在线视频观看| 国产成人免费xxxxxxxx| 日韩免费观看高清完整版| 亚洲一区二区五区| 色综合久久综合网欧美综合网 | 欧美日韩一区视频| 亚洲人精品午夜| 波多野结衣中文字幕一区 | 972aa.com艺术欧美| 久久久久9999亚洲精品| 久久爱www久久做| 欧美日本精品一区二区三区| 亚洲精品五月天| 91小视频免费观看| 国产精品免费观看视频| 丁香六月综合激情| 久久久精品影视| 国产在线国偷精品产拍免费yy| 欧美一级精品在线| 另类的小说在线视频另类成人小视频在线| 在线视频欧美精品| 亚洲成人黄色小说| 欧美日韩aaa| 蜜臀91精品一区二区三区| 69久久99精品久久久久婷婷| 午夜精品一区在线观看| 欧美日韩第一区日日骚| 日本一区中文字幕| 日韩久久久久久| 国产美女一区二区三区| 久久九九久精品国产免费直播| 国产激情一区二区三区四区 | 亚洲一线二线三线视频| 欧美色爱综合网| 日本三级亚洲精品| 精品欧美一区二区久久| 国产99一区视频免费| 亚洲欧洲av另类| 在线观看日韩电影| 蜜桃久久精品一区二区| 久久亚洲一区二区三区四区| 国产91丝袜在线观看| 亚洲人成精品久久久久| 欧美精选午夜久久久乱码6080| 久久激情五月激情| 国产精品久久久久影院亚瑟 | 国产亚洲成aⅴ人片在线观看| 国产一区二区电影| 亚洲欧美日韩系列| 日韩欧美视频在线| 成人av午夜电影| 视频在线观看一区| 国产日韩高清在线| 欧美日韩精品一区二区| 国产成人av电影在线播放| 一级中文字幕一区二区| 日韩精品专区在线影院重磅| 成人教育av在线| 日日摸夜夜添夜夜添国产精品| 久久麻豆一区二区| 欧美日韩一卡二卡三卡| 福利视频网站一区二区三区| 天天色综合天天| 国产精品理论片| 91精品久久久久久久久99蜜臂| 粉嫩在线一区二区三区视频| 亚洲综合色视频| 中文在线资源观看网站视频免费不卡 | 成人一道本在线| 久久99久国产精品黄毛片色诱| 亚洲日本在线观看| 久久婷婷国产综合国色天香| 欧美性猛交一区二区三区精品| 国产成人午夜视频| 久久99精品一区二区三区| 亚洲h在线观看| 亚洲另类一区二区| 欧美精彩视频一区二区三区| 欧美一区二区三区在线电影| 欧美午夜精品久久久| av福利精品导航| 国产丶欧美丶日本不卡视频| 奇米精品一区二区三区四区| 亚洲成人www| 亚洲一区在线观看免费观看电影高清 | 日韩黄色小视频| 亚洲成年人网站在线观看| 亚洲欧美色图小说| 中文字幕电影一区| 国产三级精品视频| 久久精品亚洲精品国产欧美kt∨ | 95精品视频在线| 99久久久无码国产精品| 狠狠色2019综合网| 国内精品久久久久影院一蜜桃| 免费看黄色91| 激情六月婷婷久久| 精品亚洲欧美一区| 国产一区二区三区在线观看免费 | 国产欧美一区二区三区沐欲| 久久亚洲春色中文字幕久久久| 日韩美女主播在线视频一区二区三区| 欧美日韩成人一区二区| 337p亚洲精品色噜噜噜| 91精品国产综合久久婷婷香蕉 | 欧美日韩1区2区| 欧美日韩黄色影视| 欧美猛男超大videosgay| 欧美猛男gaygay网站| 日韩精品一区二| 久久免费美女视频| 中文字幕二三区不卡| 成人免费在线视频观看| 亚洲电影视频在线| 毛片av一区二区三区| 国产一区二区三区在线观看免费视频| 国产成人丝袜美腿| 在线精品视频小说1| 91精品久久久久久久99蜜桃| 日韩精品一区二区三区在线观看 | 欧美日免费三级在线| 91.成人天堂一区| 欧美电影免费观看完整版| 国产午夜亚洲精品不卡| 国产精品久久久久一区二区三区 | 成人在线视频一区| 色老综合老女人久久久| 欧美一区二区大片| 国产视频911| 亚洲国产综合色| 国产精品99精品久久免费| 欧美在线一二三四区| 中文字幕一区av| 亚洲国产日韩一区二区| 极品少妇xxxx精品少妇| 97精品视频在线观看自产线路二| 欧美色网站导航| 欧美激情在线一区二区| 日韩精品1区2区3区| av电影在线观看完整版一区二区| 欧美日韩国产另类不卡| 欧美激情资源网| 日韩国产精品久久| 91网站最新地址| 久久久亚洲精品石原莉奈| 亚洲一区二区三区四区在线免费观看| 国产一区二区三区蝌蚪|