]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/freebsd/eal/eal_memory.c
mem: make base address hint OS specific
[dpdk.git] / lib / librte_eal / freebsd / eal / eal_memory.c
index 5e0204476062bfa9def106ade067ce02acc33087..7fe3178898d99156ac36037acf669a772128c3af 100644 (file)
 
 #define EAL_PAGE_SIZE (sysconf(_SC_PAGESIZE))
 
+uint64_t eal_get_baseaddr(void)
+{
+       /*
+        * FreeBSD may allocate something in the space we will be mapping things
+        * before we get a chance to do that, so use a base address that's far
+        * away from where malloc() et al usually map things.
+        */
+       return 0x1000000000ULL;
+}
+
 /*
  * Get physical address of any mapped virtual address in the current process.
  */