版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
WindowsCE6.0的黃文 點(diǎn)擊添加MSN為您收 MSDN中文網(wǎng)絡(luò)廣播課程加油助力講師黃文微軟嵌入式系統(tǒng)最有價(jià)值專家微軟系統(tǒng)工程師現(xiàn)就職于 工作方向WindowsCE,WindowsXPEmbedded的嵌入式操作系統(tǒng)驅(qū)動(dòng)開發(fā)及應(yīng)用集微軟 XPE版版主,也常去WinCE
課程簡(jiǎn)介CE的內(nèi)核架構(gòu),及與內(nèi)核直接相關(guān)的OAL收聽本次課程需具備的條了解操作系統(tǒng)嵌入式開發(fā)調(diào)試的Level聽完本課程后要了解的OAL(1)CE6的內(nèi)核是指那些模塊 (2)NK.exe和kernel.dll的調(diào)用接口包含在哪里(2A):在結(jié)構(gòu):NKGLOBAL和(3):應(yīng)用程序如 (3A):通過(1):什么內(nèi)核OALCE5.0(RemoteProcess CE5.0的硬多任務(wù)嵌入式系統(tǒng)的三層應(yīng)用需求要求內(nèi)存空間任務(wù),如GPS地圖3332M不夠硬移植麻硬件發(fā)展的內(nèi)存更快的速度 的外
上下兩層的要CE6.0的新特CE6.0系統(tǒng)體系結(jié)UM用User 模OSDLLs(Coredll,Winsock,CommCtrl,
內(nèi)內(nèi) KernelKernelKernelVirtualMemoryObjectStoreObjectStoreKernelXIPDLLs(1282Fixedmapindependentofuser
CPUSpecificKernelKernel256/512
apAreaallstem&ramLLsinccesstoStaticMapped512StaticMapped512512
cessto
256 CPU-specific SystemcalltrapKerneldata
256 KernelVM,
Kernelspacevirtualmemory,unlessdisallowedbytheCPU,suchasSHx.
256MB KernelVM Kernelspacevirtualmemory,sharedbyallserversanddriversloadedinkernel.
128MB Objectstore RAMbasedstorageforRAMfilesystem,CEDBdatabases,andRAM-basedregistry.Legacydata
128MB KernelXIPDLLs XIPDLLsforthekernelandallserversanddriversloadedinthe 512
Statically
Directaccess bypassingtheCPU
512
DirectaccesstophysicalmemoryaccessedthroughtheCPUcache.CE6.0內(nèi)核OALBaseAddress在 –CE6.0(Makeimage輸出Processingofcontent 82faa4c0000021dc( WritingROMsignatureandTOCpointerKerneldatacopysection ROMLastDLL
PhysicalStartPhysicalEnd StartStart
EndofRAM: NumberofModules: NumberofCopySections:3CopySectionOffset: FileSys4KChunks/Mbyte:128<2Mbyte1282-4Mbyte04-6Mbyte0CPUType:ExtensionsPointer:TotalROMsize:Startingip:
Rawfilessize: Compressedfilessize:0024dc62Compactingbinfile...CE6.0
CE6.0RemoteProcess 3:OAL模塊--對(duì)比--非OAL(使用DEPENDS工具OAL模塊 非OAL,普通內(nèi)核模塊內(nèi)核功能架1: 2: 3:(2):OAL模塊的編譯CE5.0內(nèi)核代 結(jié)InWindowsCE三個(gè)不同版本的內(nèi)核 Kernel=OAL+Kernel+KITL= Kernel+KITL+Profiler=各個(gè)功能靜 .函數(shù)直 CE6.0內(nèi)核代 結(jié)CE5CE6,OAL的變OAL變成了Kernel代碼變成了OEM功能不OAL/Kernel的接口經(jīng)由共享結(jié)WindowsEmbeddedCE6.0OALKITLKITL
; Memory
--------------------------------------------
----------;@CESYSGENIFCE_MODULES_NKIFIMGNOKITL
NKIF ENDIFIMGNOKITLDLLIFIMGNOKITLDLL
NK
NKSHZNKSHZENDIFIMGNOKITL!IFkerne. $_
NKkerne. $_
NKCE6
Oal.lib的sources idle.c\init.c\intr.c\ioctl.c\args.c\name.c\debug.c\reboot.c\alarm.c\timer.c\watchdog.c\fiq.c\oalintr.c\profiler.c\
Oal.exe的sourcesTARGETLIBS=\$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\oemmain.lib$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\nkstub.lib$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\nkldr.lib MONLIB)\$(_CPUDEPPATH)\oal_memory_arm.lib MONLIB)\$(_CPUDEPPATH)\oal_ioctl.lib MONLIB)\$(_CPUINDPATH)\oal_io.lib CE6.0 _DMA=1;copykitldma.dll
KITL.dll的 IBS= CE6.0 運(yùn)行Sysgen ptureNK得到kern.dll的Sources如下: pr.lib OT)\common\oak\lib\$(_CPUINDPATH)\nkmapfile.lib OT)\common\oak\lib\$(_CPUINDPATH)\nkmsgq.lib OT)\common\oak\lib\$(_CPUINDPATH)\oemstub.lib OT)\common\oak\lib\$(_CPUINDPATH)\nklogger.lib OT)\common\oak\lib\$(_CPUINDPATH)\nkmain.lib (3):多任務(wù)OS開始前,單任務(wù)OAL的準(zhǔn)備OAL的啟動(dòng)在 文件,一般用匯編語言書寫,和Bootloader共用此段代件初(驅(qū)動(dòng) 后還可以再調(diào)整和自己相關(guān)的GPIO/IRQ/Timer等 傳遞 dressTable到 此代碼由軟提供,一般不改建立和虛內(nèi)存管理相關(guān)的數(shù)據(jù)結(jié)構(gòu)(映射表) truct調(diào)用:調(diào)用 Relocate(pTOC);走出純ROM,可以定位DLL和變量 打開中斷任務(wù)系統(tǒng)開始運(yùn) try try merEnablepfnProfileTimerEnable; mpfnHaltSystem; TLGlobalInit; #ifdefined #elifdefined reVFPCtrlRegspfnSaveVFPCtrlRegs; ExceptionpfnHandleVFPExcp;#elif DWORDdwArchFla constBYTE constBYTE #elifdefined r #pragmaerr } try try merEnablepfnProfileTimerEnable; mpfnHaltSystem; TLGlobalInit; #ifdefined #elifdefined reVFPCtrlRegspfnSaveVFPCtrlRegs; ExceptionpfnHandleVFPExcp;#elif DWORDdwArchFla constBYTE constBYTE #elifdefined r #pragmaerr } typedefstruct_NKGLOBAL void vDbgPrintfW)(LPCWSTRlpszFmt,va_listint(*pf void(*pfnSetLastErrorDWORDdwErr); void(W void(W *pfnDeleteCS)(LPCRITICAL_SECTIONlpcs);void(W *pfnEnterCS)(LPCRITICAL_SECTIONlpcs);void(W *pfnLeaveCS)(LPCRITICAL_SECTIONlpcs);void*pfnINT_OFFvvoid(*pfnINT_ON) nINT_ENABLE)(BOOL nHookInterrupt)(inthwInterruptNumber,FARPROCpfnHandler); nNKCallIntChain)(BYTEirq); nNKIsSysIntrValid)(DWORDidInt); void(*pf eep)(DWORDcmsec); nVMSetAttrib)(LPVOIDlpvAddress,DWORDcbSize,DWORDdwNewFlags,DWORDdwMask,LPDWORDlpdwOldFlags); nCreateStaticMapping)(DWORDdwPhysBase,DWORDdwSize); REGSAMsa nRegCloseKey)(HKEYhKey); egQueryValueExW)(HKEYhKey,LPCWSTRlpValueName,LPDWORDlpReserved,LPDWORDlpType,LPBYTElpData, DWORDvoid(*pf ForceCleanBoot)(void); nNKReboot)(BOOLfClean); nPhysToVirt)(DWORDdwShiftedPhysAddr,BOOLfCached); nVirtToPhys)(DWORDdwVirtAddr); nNKwcslen)(constwchar_t*int(*pf cscmp)(constwchar_t*pwc1,constwchar_t*pwc2);int(*pf csicmp)(LPCWSTRstr1,LPCWSTRstr2);int(*p snicmp)(LPCWSTRstr1,LPCWSTRstr2,intcchLen);void(*pfnNKwcscpy)(LPWSTRp1,LPCWSTRp2);DWORD(*pfnNKwcsncpy)(LPWSTRpDst,LPCWSTRpSrc,DWORDint(*pfnNKstrcmpiAandW)(LPCSTRlpa,LPCWSTRvoid(*pf void BOOL(* BOOL
(LPSTRchptr,LPCWSTRwchptr,intmaxlen);(LPWSTRwchptr,LPCSTRchptr,int(constSYSTEMTIME*pst,LPFILETIMEpft);(constFILETIME*pft,LPSYSTEMTIMELONG(* pareFileTime)(constFILETIME*,constFILETIME*);void(*pf erHit)(UINTaddr); ORDdwCurMSec; #ifdef abnormal_termination;BOOL BOOL(*
(DWORDdwAddr,DWORDdwValHigh,DWORDdwValLow);(DWORDdwAddr,DWORD*lpdwValHigh,DWORD*lpdwValLow); C_specific_handler;#ifdefBYTE #ifdefconstDW *dwOriVectors; } :(4):多任務(wù)OS運(yùn)行后,OAL功能及Krn lGlobaltimingvariablesexportedbythekernelManagementofthethreadschedulingtimerInterruptlatencytimingHigh-performancecountersupportMonteCarloprofilingsupportKernelGlobalVariablesforScheduling DWORDcounterofthenumberofmillisecondssincesystemboot.TheusercanreadthisvariablebycallingGetTickCount.DWORDcontainingthemillisecondcountofthenexttimethekernelexpectstorunthescheduler.curridlehigh,curridlelow,andDWORDvariablesthatimplementa64-bitcounterreflectingthenumberofm econdsthesystemhasbeenidle.TheusercanreadthiscounterbycallingGetIdleTime.kerneloperationalnormalSuspendOEMPowerOffResumeOEMResumeProduction-QualityOAL duction-qualityOALmodeldividestheoriginalmonolithicOALintoacollection rr raryisa Althoughthelibrarycode'slocationdependsonthescopeofthehardwareitsupports,thecodeisgroupedinthefollowing Codethatisnothardware-specific CodethatisuniquetotheCPUfamily CodethatisuniquetoaspecificCPUorsystem-on-a-chip(SOC)model Codethatis ecificboardBoot
Passesparametersfromthebootloadertothekernelinauniformway.Formoreinformation,seeBootArgumentsLibrary.
Implementscacheandtranslationlook-asidebuffer(TLB)operations.Formoreinformation,seeCacheLibrary.Ethernet
ImplementsEthernetkernelindependenttransportlayer(KITL)devicedrivers,whichareimplementedinthecommonlibrary.The%_WINCEROOT%\ tform\Common\Src\Inc\Oal_ethdrvhfilecontains esforthe
Implementscodeforflashmemoryoperations.Theproduction-qualityOALprovidesgenericsolutions pliantflashInterruptLatency
ImplementsinterruptFormoreinformation,seeInterruptImplementsILT*functions.ThislibraryusuallyrequiresILTimingtobeenabled,aswellastheInterruptandTimerlibraries.Formoreinformation,seeInterruptLatencyTiming
Implementsbusaddresstranslation,readingbusconfigurationspace,andI/Ooperations.Formoreinformation,seeI/OLibrary.Real-Time
OEMIoControl,whichcallskernelfunctionsfromuserspace.ItalsoimplementssomegenericOALIoCtlXXXfunctions.Formoreinformation,seeIOCTLLibrary.ImplementsdebugcommunicationoverKITL.Formoreinformation,seeKITLLibrary.ImplementsconsistentloggingintheOAL.Formoreinformation,seeLoggingLibrary.ImplementstranslationbetweenphysicalandvirtualmemoryinkerneladdressFormoreinformation,seeMemoryImplementsPCIbussupportinthekernel.ItalsoimplementssimplePCIbusconfigurationfunctionsintendedtobeusedforbootloaderandKITL.Formoreinformation,seePCIImplementssystemsuspendandresumeInmostcases,powermanagementishardwaredependent.Formoreinformation, ImplementsOALprofiling.ThislibraryimplementstheOALfunctionsrequiredforkernelprofiling.Formoresee%_WINCEROOT%\ Implementsfunctionalityforreal-timeclock(RTC).Formoreinformation,see%_WINCEROOT%\ Implementsthesystemtick,orclo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 《2024年 公司治理與資本結(jié)構(gòu)對(duì)上市公司價(jià)值創(chuàng)造能力影響的實(shí)證研究》范文
- 系統(tǒng)分析師教程知識(shí)點(diǎn)精講(一)
- 百日行動(dòng)工作總結(jié)(多篇)
- 臨時(shí)租賃挖掘機(jī)合同(標(biāo)準(zhǔn)版)
- 高二生物會(huì)考模擬考卷
- 倉儲(chǔ)保管合同(1)(標(biāo)準(zhǔn)版)
- 部編版道德與法治二年級(jí)上冊(cè)第4課《團(tuán)團(tuán)圓圓過中秋》教學(xué)課件
- 四年級(jí)下冊(cè)音樂教案湖南版
- 2024義務(wù)教育《道德與法治課程標(biāo)準(zhǔn)》(2022 年版)測(cè)試題庫及答案
- 員工離職協(xié)議書全文模板
- 小學(xué)英語語法專題訓(xùn)練:名詞所有格(含答案)
- 2024-2025 學(xué)年度武漢市部分學(xué)校高三九月調(diào)研考試 語文試卷(含答案)
- 2024-2030年中國骨湯行業(yè)市場(chǎng)發(fā)展趨勢(shì)與前景展望戰(zhàn)略分析報(bào)告
- 2024至2030年中國地下空間開發(fā)利用及發(fā)展前景研究報(bào)告
- 小學(xué)生五年級(jí)信息素養(yǎng)測(cè)試試卷及答案
- 廣東省廣州市荔灣區(qū)2023-2024學(xué)年七年級(jí)下學(xué)期期末語文試題(解析版)
- 楊小微-終身視野下教學(xué)過程的“育德”與“養(yǎng)性”
- 教育管理研修班培訓(xùn)總結(jié)
- 2024年全國資料員之資料員基礎(chǔ)知識(shí)考試重點(diǎn)試卷附答案609
- 2024-2030年全球及中國小牛血清市場(chǎng)占有率分析及前景供需態(tài)勢(shì)剖析研究報(bào)告
- 2024-2030年汽車差速器小齒輪行業(yè)市場(chǎng)現(xiàn)狀供需分析及重點(diǎn)企業(yè)投資評(píng)估規(guī)劃分析研究報(bào)告
評(píng)論
0/150
提交評(píng)論