Export (0) Print
Expand All

ARM Microprocessor

Windows CE .NET

The following issues should be noted when using an ARM kernel:

  • The ARM kernel does not restrict your use of registers.

    In addition, you can use C code as well as assembler code when you are developing your interrupt service routines (ISRs). However, be aware that the ISR should be as small and fast as possible.

  • You can specify mapping of physical resources to the statically mapped (direct-mapped) virtual addresses of the kernel in 1-MB blocks.

    In an ARM-specific OAL, create an OEMAddressTable table that defines the mapping from the 4-GB physical address space to the kernel's 512-MB, statically mapped spaces. Each entry in the table consists of the following entries:

    • Virtual base address to which to map
    • Physical base address from which to map
    • Number of MB to map

    While the order of the values in the table is arbitrary, DRAM should be placed first for optimal performance. Because the table is zero-terminated, the last entry must be all zeroes. The kernel will create two ranges of virtual addresses from this table. One region, from 0x80000000 to 0x9FFFFFFF, will have caching and buffering enabled. The other region, from 0xA0000000 to 0xBFFFFFFF, will have caching and buffering disabled.

  • The OEMInterruptHandlerFIQ function must be part of the OAL for any ARM build to succeed, even if it is just a stub.
  • Nested interrupts.

    The ARM CPU architecture supports two interrupts: one hardware interrupt request (IRQ) and one fast interrupt request. The OEM must choose a nesting scheme and perform the appropriate masking of the interrupt register in OEMInterruptHandler before re-enabling interrupts. To do so, call INTERRUPTS_ON once the lower priority interrupts have been masked. OEMInterruptHandler may call INTERRUPTS_OFF again if it requires non-reentrant code, but this call is not required because the kernel handles it when returning from OEMInterruptHandler.

  • When using GetSystemInfo to obtain microprocessor information, note that the dwProcessorType member of the SYSTEM_INFO structure does not return the correct microprocessor type.

    To have dwProcessorType return the correct microprocessor type, set the CEProcessorType global variable to PROCESSOR_ARM720 or PROCESSOR_STRONGARM, depending on your microprocessor. To obtain the microprocessor type, implement IOCTL_PROCESSOR_INFORMATION in OEMInit and assign a value to CEProcessorType.

See Also

How to Develop an OEM Adaptation Layer | Microprocessor-specific Issues


Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.

Show:
© 2015 Microsoft