VirtualBox

Changeset 260 in vbox for trunk


Ignore:
Timestamp:
Jan 24, 2007 10:14:22 AM (18 years ago)
Author:
vboxsync
Message:

Fixed the vboxdrv kernel module on 2.4 series kernels

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r241 r260  
    5555#endif
    5656
    57 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) && !defined(page_to_pfn)
    58 # define page_to_pfn(page) ((page) - mem_map)
     57#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
     58# ifndef page_to_pfn
     59#  define page_to_pfn(page) ((page) - mem_map)
     60# endif
     61# include <asm/pgtable.h>
     62# define global_flush_tlb __flush_tlb_global
    5963#endif
    6064
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r136 r260  
    3333#include <linux/autoconf.h>
    3434#include <linux/version.h>
     35
     36/* We only support 2.4 and 2.6 series kernels */
     37#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
     38# error We only support 2.4 and 2.6 series kernels
     39#endif
     40#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
     41# error We only support 2.4 and 2.6 series kernels
     42#endif
     43
    3544#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
    3645# define MODVERSIONS
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