]> Zhao Yanbai Git Server - minix.git/commitdiff
disable address space randomisation feature in normal mode.
authorBen Gras <ben@minix3.org>
Tue, 29 Sep 2009 12:10:30 +0000 (12:10 +0000)
committerBen Gras <ben@minix3.org>
Tue, 29 Sep 2009 12:10:30 +0000 (12:10 +0000)
servers/vm/i386/pagetable.c

index dd477a0584398d3db945da880e9b0e5bd2039974..0d3f545497d0fe0688082fe129e55ae73a8bca65 100644 (file)
@@ -155,7 +155,7 @@ PRIVATE u32_t findhole(pt_t *pt, u32_t vmin, u32_t vmax)
        vm_assert((vmin % I386_PAGE_SIZE) == 0);
        vm_assert((vmax % I386_PAGE_SIZE) == 0);
 
-#if 1
+#if SANITYCHECKS
        curv = ((u32_t) random()) % ((vmax - vmin)/I386_PAGE_SIZE);
        curv *= I386_PAGE_SIZE;
        curv += vmin;