X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fos-common.c;h=bb09a24d1808d7148ff7cb0791d4df33ebe913ab;hb=b7d4d90a22c7dff0c41d261fc4f5c3266edd2a6e;hp=ef31ac9a0cff766bc8b39b3881f1e4ed49762ab3;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/src/runtime/os-common.c b/src/runtime/os-common.c index ef31ac9..bb09a24 100644 --- a/src/runtime/os-common.c +++ b/src/runtime/os-common.c @@ -9,14 +9,13 @@ * files for more information. */ -/* - * $Header$ - */ - #include #include +#include +#include "sbcl.h" #include "os.h" +#include "interr.h" /* Except for os_zero, these routines are only called by Lisp code. * These routines may also be replaced by os-dependent versions @@ -50,7 +49,7 @@ os_zero(os_vm_address_t addr, os_vm_size_t length) os_invalidate(block_start, block_size); addr = os_validate(block_start, block_size); - if(addr == NULL || addr != block_start) + if (addr == NULL || addr != block_start) lose("os_zero: block moved! 0x%08x ==> 0x%08x", block_start, addr); @@ -85,15 +84,15 @@ os_reallocate(os_vm_address_t addr, os_vm_size_t old_len, os_vm_size_t len) len=os_round_up_size_to_page(len); old_len=os_round_up_size_to_page(old_len); - if(addr==NULL) + if (addr==NULL) return os_allocate(len); else{ long len_diff=len-old_len; - if(len_diff<0) + if (len_diff<0) os_invalidate(addr+len,-len_diff); else{ - if(len_diff!=0){ + if (len_diff!=0) { os_vm_address_t new=os_allocate(len); if(new!=NULL){