File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -507,8 +507,8 @@ typedef struct nvidia_event
507507#define vmalloc (size ) kmalloc(size, 0)
508508#define vzalloc (size ) kzalloc(size, 0)
509509#define ksize (p ) objcache_from_object(u64_from_pointer(p), PAGESIZE_2M)->pagesize
510- #define is_vmalloc_addr (p ) false
511- #define vfree kfree
510+ #define is_vmalloc_addr (p ) (objcache_from_object(u64_from_pointer(p), PAGESIZE_2M) == INVALID_ADDRESS)
511+ #define vfree NV_KFREE
512512
513513static inline void * kmalloc (unsigned long size , int flags )
514514{
Original file line number Diff line number Diff line change 4141//
4242// This is in the header so callers can use it to inform their allocation sizes
4343// if they wish.
44- #define UVM_KMALLOC_THRESHOLD infinity
44+ //
45+ // Default value is 16. See: https://github.com/nanovms/nanos/blob/103518003874e7c8c3cb6e5a93d81fd0f197fde6/src/config.h#L84-L85
46+ #define UVM_KMALLOC_THRESHOLD 16
4547
4648NV_STATUS uvm_kvmalloc_init (void );
4749void uvm_kvmalloc_exit (void );
You can’t perform that action at this time.
0 commit comments