X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fos-common.c;h=bb09a24d1808d7148ff7cb0791d4df33ebe913ab;hb=78fa16bf55be44cc16845be84d98023e83fb14bc;hp=2f8a56c974c6ee1acb7847ff9f894687e3522a99;hpb=cea4896b2482b7b2b429c1631d774b4cfbc0efba;p=sbcl.git diff --git a/src/runtime/os-common.c b/src/runtime/os-common.c index 2f8a56c..bb09a24 100644 --- a/src/runtime/os-common.c +++ b/src/runtime/os-common.c @@ -11,8 +11,11 @@ #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 @@ -46,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); @@ -81,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){