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

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

?? mmarch.doc

?? MMURTL(tm) Computer Operating System Ver x0.8, source code.
?? DOC
?? 第 1 頁 / 共 4 頁
字號:
This initial task actually becomes the MMURTL monitor program which is always queued to run back there somewhere.  It serves several purposes which are out of the scope of memory management.  It's discussed a little later in this section.

-------------------------------------------------
OS Initialization

Initial OS Structures

When the OS is first loaded, it is placed in physical memory at address 0.  The data segment for the OS is located at low physical memory (address 00000000h).  At this point, physical memory is the same as linear memory (we're not in paged mode yet).  In fact, your initial code and data address MUST be the same when transitioning in and out of paged memory or the Great Pumpkin falls on you (yes, a very messy crash).  The OS starts off with the following initial structures (these may change slightly between versions, but the concept will not change):

Important tables:

Interrupt Descriptor Table (IDT) - 2Kb at 00000000h Physical
Global Descriptor Table (GDT)    - 6Kb at 00000800h Physical 
Initial Page Directory  (PD)	   - 4Kb at 02000h Physical
Initial Page Table (PT)          - 4Kb at 03000h Physical

Other important structures:

Static Task State Segments for Monitor and Debugger (TSSs)
Static Job Control Blocks for Monitor and Debugger (JCBs)
Array of Link Blocks (LBs)
Array of Service Descriptors (SVCs)
Initial Static Exchanges (EXCHs)

Note that several structures are defined as static. This is because they are used to get the OS up and running. The bulk of these structures are allocated dynamically in the OS address space after memory management is initilized.

Other junk:

pRunTSS     -- Pointer to the Running TSS
RdyQ        -- Ready Queue for Tasks ready to Run
pFreeJCB    -- Ptr to pool of free Job Control Blocks
pCrntJCB	  -- Ptr to current Job Control Block
nRegistered -- Number of Registered Services

Page Allocation Map (PAM)  -- 2 Kb to manage 64Mb of memory

Still more junk:

oMemMax		Last byte of addressable physical memory
GDTLimit		Global Descriptor Table Limit
GDTBase		GDT base address
IDTLimit		Interrupt Descriptor Table Limit
IDTBase		IDT base

TimerTick		A DWord counting the ticks of the clock
nTmrBlksUsed	Number of timer blocks in use
Array of Timer Blocks (rgTmrBlks)

There's still more junk, but we'll stop because you get the idea.  Look at the code to see what's really there.

The OS initializes most of those arrays, and sets up it's initial task, then it initializes it's memory space by setting bits in the PAM and making entries in it's page table (it's only got one PT at this point). Then it goes into PAGED MEMORY MODE.  It never comes back into physical address mode.  If we do it wrong, it never comes back at all (reset buttons are really useful when developing an operating system). 

Once memory management functions are working we allocate several pages for dynamic structures (more TSSs and JCBs etc.)

The Page Directory (PD) that was initially allocated to the OS will become the PD for the OS Monitor program.  It will hold all the PTs for OS shared code.  
---------------------------------------------------------
The MMURTL Monitor Program


The OS Monitor program does the following things:

1) Initializes the Keyboard Service, floppy & hard disk device drivers, default comms device drivers, and the file system.

2) Allows the user to execute the command line interpreter (CLI).  This creates a new job with its own virtual video.

3) Displays system errors (such as why your program was shut down and thrown out)

4) Provides performance monitoring.



Loading Things Into Memory 

Applications, System Services, Device drivers, and DLLs, must all be loaded into memory somewhere.  

Each application (job) gets it own PD.  This is allocated along with the new Job Control Block (JCB).  It also get as many pages as it needs for it's code, intial stack, and data.  It's loaded into these initial pages.  Message based system services are exactly like applications from a memory standpoint.  They are simply new jobs.

Device Drivers have code and data, but no stack. They become part of the OS and are reached through the standard entry points (in the call gates).  They are actually loaded into the operating system's memory space with freshly allocated pages.  They become part of the OS in the OS address space (accessable to everyone).

Dynamic Link Libraries are the weird ones.  They have only code (no data, and no stack).  They are also loaded into OS address space, but the pages they occupy are marked executable by user level code.  This means they can be accessed from the user's code with near calls.  This also means that the loader must keep track of the PUBLIC names of each call in a DLL and resolve references to them after we load the applications that call them.  But this gets away from memory management. 

OSs page tables are aliased as the first tables in each job's PD and marked as supervisor.  PDs and PTs are always resident (no page swapper yet, how could they be swapped?). This is 8Kb of initial memory management overhead for each job.  It will still only be 8Kb for a 4Mb application.


Messaging and Aliases

An "alias" address is actually just a shared PTE. If two jobs need to share memory (as they do when using the Request/Respond messaging), the kernel copies a PTE from one job's PT to another Jobs PT.  Instantly the second job has access to other jobs data.  They "share" physical memory. Of course they probably won't be at the same linear address which means we have to fixup a pointer or two in the request block, but that's trivial (two or three instructions).

There is no new allocation of physical memory, and the service doesn't even know that the pages don't actually belong to him as they "magically" appear inside his linear address space. Of course, If he tries to deallocate them an error will occur.  Paging makes messaging faster and easier.    A PTE that is aliased is marked as such and can't be deallocated or swapped until the alias is dissolved.  Aliasing will only occur for certain OS structures and messaging (other than the aliased page tables in the users Page Directory for the OS code and data).

Memory and Pointer Management for Messaging

If you haven't read the chapter on messaging, you should do it before you read this section.  This will make more sense if you do.

When an application "Requests" a service, the kernel allocates a Request Block from the OS and returns a handle identifying this request block to the caller.  This request block is allocated in OS memory space, but at the user's protection level so the service can access it.  

The user's two pointers (pData1 and pData2) are aliased into the services memory area and are placed in the request block. 

The memory aspects of the Request/Respond messaging process work like this:

1) The caller makes a request

2) The Request primitive (on the caller's side):
	- Allocates a request block
	- Returns a request handle to the caller
	- Places the following into the RqBlk:
		linear address of pData1 (if not 0)
		linear address of pData2 (if not 0)
		sizes of the pData1 and 2
		pointer to caller's Job Control Block
		Service Code
		Response Exchange
		dData0 and dData1
	- Places a message on the Service's exchange with the 
	  Request handle in it
	- Schedules the service for execution
     - Reevalutes the Ready Queue (switching tasks if
       needed)

3) The Wait primitive (on the service's side):
	-  Adds aliases to the service's Page Table(s) for
        pData1 and 2
	-  Places aliased linear addresses into RqBlk 
	-  Returns the message to the service

4) The service does it's thing using the aliased pointers (reading & writing data to the caller's memory areas).  When it's done it work, it Responds.

5) The Respond primitive (on the service's side):
	- Removes the aliased memory from the service's PTs
	- Places the message on the caller's response exchange
	- Reevaluates the Ready Queue (switch tasks if needed)

6) The wait primitive (back on the caller's side):
	- Simply passes the response message to the caller  

Enough on memory management. You know as know as much as I do at this point.


--------------- END OF ARCHITECTURE CHAPTER ---------------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色大人视频| 91麻豆swag| 亚洲欧美偷拍卡通变态| 国产成人在线免费观看| 成人短视频下载| 天天亚洲美女在线视频| 亚洲国产日韩综合久久精品| 亚洲男人的天堂在线aⅴ视频| 最新国产成人在线观看| 亚洲综合清纯丝袜自拍| 亚洲午夜一二三区视频| 亚洲成人精品在线观看| 蜜臀av一区二区在线观看| 久久99精品国产91久久来源| 国产成人午夜精品5599 | 91在线视频免费91| 一本大道综合伊人精品热热 | 不卡一卡二卡三乱码免费网站| 高清av一区二区| 一本色道久久加勒比精品| 在线一区二区视频| 日韩欧美一级特黄在线播放| 国产欧美日产一区| 一区二区三区中文字幕在线观看| 日韩精品一区第一页| 国产美女视频一区| 91网站在线观看视频| 欧美一区二区三区白人| 中文字幕高清不卡| 亚洲一区二区三区四区不卡| 久久成人av少妇免费| www.激情成人| 日韩美女天天操| 国产精品麻豆欧美日韩ww| 亚洲成人自拍网| 国产a级毛片一区| 欧美精品v国产精品v日韩精品| 国产精品久久毛片av大全日韩| 一区二区免费在线播放| 国内精品久久久久影院一蜜桃| 色综合久久久久综合体| 日韩精品一区二区三区中文不卡| 亚洲少妇30p| 激情欧美一区二区三区在线观看| 色综合久久六月婷婷中文字幕| 欧美xxxxx裸体时装秀| 亚洲激情av在线| 国产麻豆精品一区二区| 欧美日韩精品一区二区在线播放| 国产精品麻豆视频| 黑人巨大精品欧美一区| 欧美精品乱码久久久久久按摩| 国产精品久久久爽爽爽麻豆色哟哟 | 日本午夜精品一区二区三区电影| 成人黄色777网| 精品国产sm最大网站免费看| 亚洲午夜三级在线| 日本乱码高清不卡字幕| 欧美激情一区二区三区| 国内精品免费**视频| 日韩欧美123| 日本在线观看不卡视频| 91黄色免费网站| 亚洲另类一区二区| 97久久超碰国产精品电影| 欧美激情一区二区三区不卡| 国产尤物一区二区| 欧美精品一区二区三区在线| 久久国产精品99精品国产| 欧美一区二区性放荡片| 亚洲一区二区三区中文字幕在线 | 免费在线视频一区| 欧美日韩中文国产| 亚洲二区视频在线| 欧美精三区欧美精三区| 亚洲一区二区三区视频在线 | 91精品国产麻豆国产自产在线| 亚洲成人免费在线观看| 欧美日韩中文精品| 日韩福利视频网| 91精品国模一区二区三区| 日本亚洲视频在线| 日韩美一区二区三区| 国内精品国产成人国产三级粉色 | 成人综合在线观看| 亚洲视频狠狠干| 欧美影院午夜播放| 日韩**一区毛片| 亚洲精品在线免费播放| 国精产品一区一区三区mba桃花 | 欧美精品在线观看一区二区| 亚瑟在线精品视频| 欧美一二三区精品| 丰满少妇久久久久久久| 综合自拍亚洲综合图不卡区| 欧美在线观看一二区| 日本免费新一区视频| 久久香蕉国产线看观看99| 成人污污视频在线观看| 亚洲综合精品久久| 精品久久人人做人人爰| av激情亚洲男人天堂| 亚洲国产日产av| 久久精品亚洲精品国产欧美kt∨ | 视频一区免费在线观看| 久久影视一区二区| 色八戒一区二区三区| 九九国产精品视频| 亚洲精品伦理在线| 欧美不卡在线视频| 91蜜桃在线免费视频| 蜜臀av国产精品久久久久| 欧美国产日韩在线观看| 欧美午夜精品一区二区蜜桃| 精品一区二区三区免费毛片爱| 中文字幕在线观看一区| 欧美一区二区三区喷汁尤物| 北岛玲一区二区三区四区| 日本aⅴ免费视频一区二区三区 | 91黄色激情网站| 国产精品一区不卡| 婷婷亚洲久悠悠色悠在线播放 | 亚洲综合在线免费观看| 精品88久久久久88久久久| 欧美系列在线观看| 成人毛片在线观看| 琪琪久久久久日韩精品| 亚洲乱码日产精品bd| 26uuu欧美| 欧美日韩国产一二三| 91在线无精精品入口| 国产成人8x视频一区二区 | 成人黄色免费短视频| 国产在线观看一区二区| 日本vs亚洲vs韩国一区三区| 亚洲青青青在线视频| 国产精品久久久久aaaa| 2020国产精品自拍| 正在播放一区二区| 欧美体内she精高潮| 色婷婷亚洲一区二区三区| 丁香婷婷深情五月亚洲| 精品一区免费av| 蜜臀av国产精品久久久久| 蜜臀va亚洲va欧美va天堂| 婷婷久久综合九色国产成人| 亚洲午夜精品在线| 偷拍亚洲欧洲综合| 亚洲自拍偷拍av| 午夜视频在线观看一区二区三区| 亚洲欧美日韩中文字幕一区二区三区| 欧美激情资源网| 18欧美乱大交hd1984| 国产精品久久影院| 中文字幕字幕中文在线中不卡视频| 欧美国产精品久久| 日本一区二区三区国色天香 | 在线不卡中文字幕| 91精品婷婷国产综合久久性色 | 久久久亚洲综合| 久久久噜噜噜久噜久久综合| 久久久国产精品麻豆| 欧美激情资源网| 亚洲三级免费电影| 亚洲高清免费观看| 麻豆精品视频在线观看免费| 国产九色精品成人porny | 美女视频黄 久久| 国产成人午夜视频| 99re热这里只有精品免费视频| 99精品视频中文字幕| 欧美自拍丝袜亚洲| 日韩欧美在线观看一区二区三区| 精品日韩99亚洲| 国产精品麻豆欧美日韩ww| 亚洲精品国产无天堂网2021| 日韩二区三区四区| 国产成人免费av在线| 在线免费不卡电影| 精品三级av在线| 中文字幕制服丝袜成人av| 亚洲国产美女搞黄色| 精品一区二区在线播放| 成人福利视频在线看| 欧美日本一区二区三区| 久久精品在线免费观看| 亚洲欧美激情在线| 久久99精品久久久久久国产越南| 波多野结衣欧美| 欧美一区二区视频在线观看 | 99久久免费精品高清特色大片| 在线视频观看一区| 亚洲精品在线观| 午夜日韩在线电影| caoporn国产精品| 欧美精品一区二区三区蜜桃视频 | 国产综合久久久久影院| 91黄色小视频| 国产精品美女一区二区三区| 国产一区二区福利视频|