VirtualBox

Ignore:
Timestamp:
Jul 17, 2007 12:39:30 PM (17 years ago)
Author:
vboxsync
Message:

RT_OS_* and RT_ARCH_* for Runtime/ and Support/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r3393 r3672  
    121121 * This sucks soooo badly on x86! Why don't they export __PAGE_KERNEL_EXEC so PAGE_KERNEL_EXEC would be usable?
    122122 */
    123 #if defined(__AMD64__)
     123#if defined(RT_ARCH_AMD64)
    124124# define MY_PAGE_KERNEL_EXEC    PAGE_KERNEL_EXEC
    125125#elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
     
    149149# endif
    150150
    151 # ifndef __AMD64__
     151# ifndef RT_ARCH_AMD64
    152152/* In 2.6.9-22.ELsmp we have to call change_page_attr() twice when changing
    153153 * the page attributes from PAGE_KERNEL to something else, because there appears
     
    170170
    171171#ifndef MY_CHANGE_PAGE_ATTR
    172 # ifdef __AMD64__ /** @todo This is a cheap hack, but it'll get around that 'else BUG();' in __change_page_attr().  */
     172# ifdef RT_ARCH_AMD64 /** @todo This is a cheap hack, but it'll get around that 'else BUG();' in __change_page_attr().  */
    173173#  define MY_CHANGE_PAGE_ATTR(pPages, cPages, prot) \
    174174    do { \
     
    205205 *                    and disabled on i386.
    206206 */
    207 # if defined(__AMD64__)
     207# if defined(RT_ARCH_AMD64)
    208208#  if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21)
    209209#   define DO_DISABLE_NMI 1
     
    267267#define DEVICE_NAME    "vboxdrv"
    268268
    269 #ifdef __AMD64__
     269#ifdef RT_ARCH_AMD64
    270270/**
    271271 * Memory for the executable memory heap (in IPRT).
     
    608608        if (RT_SUCCESS(rc))
    609609        {
    610 #ifdef __AMD64__
     610#ifdef RT_ARCH_AMD64
    611611            rc = RTR0MemExecDonate(&g_abExecMemory[0], sizeof(g_abExecMemory));
    612612#endif
     
    10251025     * Allocate page pointer array.
    10261026     */
    1027 #ifdef __AMD64__ /** @todo check out if there is a correct way of getting memory below 4GB (physically). */
     1027#ifdef RT_ARCH_AMD64 /** @todo check out if there is a correct way of getting memory below 4GB (physically). */
    10281028    paPages = alloc_pages(GFP_DMA, cOrder);
    10291029#else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette