Changeset 0b4a67a in mainline
- Timestamp:
- 2010-11-20T15:33:02Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e1f9b7
- Parents:
- a9c6b966
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/typedefs.h
ra9c6b966 r0b4a67a 37 37 #include <arch/types.h> 38 38 39 #define NULL 039 #define NULL ((void *) 0) 40 40 41 41 #define false 0 -
kernel/arch/amd64/src/debugger.c
ra9c6b966 r0b4a67a 260 260 } 261 261 262 cur->address = NULL;262 cur->address = (uintptr_t) NULL; 263 263 264 264 setup_dr(slot); … … 313 313 unsigned int i; 314 314 for (i = 0; i < BKPOINTS_MAX; i++) 315 breakpoints[i].address = NULL;315 breakpoints[i].address = (uintptr_t) NULL; 316 316 317 317 #ifdef CONFIG_KCONSOLE -
kernel/arch/mips32/src/debugger.c
ra9c6b966 r0b4a67a 247 247 smc_coherence(((uint32_t *) cur->address)[1]); 248 248 249 cur->address = NULL;249 cur->address = (uintptr_t) NULL; 250 250 251 251 irq_spinlock_unlock(&bkpoint_lock, true); … … 289 289 290 290 for (i = 0; i < BKPOINTS_MAX; i++) 291 breakpoints[i].address = NULL;291 breakpoints[i].address = (uintptr_t) NULL; 292 292 293 293 #ifdef CONFIG_KCONSOLE … … 417 417 /* Remove one-shot breakpoint */ 418 418 if ((cur->flags & BKPOINT_ONESHOT)) 419 cur->address = NULL;419 cur->address = (uintptr_t) NULL; 420 420 421 421 /* Remove in-progress flag */ -
kernel/arch/sparc64/src/mm/sun4u/frame.c
ra9c6b966 r0b4a67a 41 41 #include <macros.h> 42 42 43 uintptr_t last_frame = NULL;43 uintptr_t last_frame = (uintptr_t) NULL; 44 44 45 45 /** Create memory zones according to information stored in memmap. -
kernel/generic/include/typedefs.h
ra9c6b966 r0b4a67a 40 40 #include <arch/types.h> 41 41 42 #define NULL 0UL42 #define NULL ((void *) 0) 43 43 44 44 #define false 0 -
kernel/generic/src/main/main.c
ra9c6b966 r0b4a67a 97 97 /** Boot allocations. */ 98 98 ballocs_t ballocs = { 99 .base = NULL,99 .base = (uintptr_t) NULL, 100 100 .size = 0 101 101 }; -
kernel/generic/src/mm/as.c
ra9c6b966 r0b4a67a 312 312 * 313 313 */ 314 if (overlaps(va, size, NULL, PAGE_SIZE))314 if (overlaps(va, size, (uintptr_t) NULL, PAGE_SIZE)) 315 315 return false; 316 316 -
kernel/generic/src/mm/frame.c
ra9c6b966 r0b4a67a 878 878 * the assert 879 879 */ 880 ASSERT(confframe != NULL);880 ASSERT(confframe != ADDR2PFN((uintptr_t ) NULL)); 881 881 882 882 /* If confframe is supposed to be inside our zone, then make sure … … 1104 1104 */ 1105 1105 pfn_t pfn = ADDR2PFN(frame); 1106 size_t znum = find_zone(pfn, 1, NULL);1106 size_t znum = find_zone(pfn, 1, 0); 1107 1107 1108 1108 ASSERT(znum != (size_t) -1); … … 1141 1141 * First, find host frame zone for addr. 1142 1142 */ 1143 size_t znum = find_zone(pfn, 1, NULL);1143 size_t znum = find_zone(pfn, 1, 0); 1144 1144 1145 1145 ASSERT(znum != (size_t) -1); -
kernel/generic/src/synch/smc.c
ra9c6b966 r0b4a67a 44 44 unative_t sys_smc_coherence(uintptr_t va, size_t size) 45 45 { 46 if (overlaps(va, size, NULL, PAGE_SIZE))46 if (overlaps(va, size, (uintptr_t) NULL, PAGE_SIZE)) 47 47 return EINVAL; 48 48 -
uspace/app/bdsh/cmds/builtins/builtins.h
ra9c6b966 r0b4a67a 10 10 #include "cd/cd_def.h" 11 11 #include "exit/exit_def.h" 12 {NULL, NULL, NULL, NULL, NULL}12 {NULL, NULL, NULL, NULL, 0} 13 13 }; 14 14 -
uspace/app/nettest1/nettest1.c
ra9c6b966 r0b4a67a 388 388 return ENOMEM; 389 389 } 390 socket_ids[sockets] = NULL;390 socket_ids[sockets] = 0; 391 391 392 392 if (verbose) -
uspace/app/nettest2/nettest2.c
ra9c6b966 r0b4a67a 336 336 return ENOMEM; 337 337 } 338 socket_ids[sockets] = NULL;338 socket_ids[sockets] = 0; 339 339 340 340 if (verbose) -
uspace/lib/c/arch/abs32le/src/stacktrace.c
ra9c6b966 r0b4a67a 56 56 uintptr_t stacktrace_fp_get(void) 57 57 { 58 return NULL;58 return (uintptr_t) NULL; 59 59 } 60 60 61 61 uintptr_t stacktrace_pc_get(void) 62 62 { 63 return NULL;63 return (uintptr_t) NULL; 64 64 } 65 65 -
uspace/lib/c/arch/abs32le/src/tls.c
ra9c6b966 r0b4a67a 46 46 uintptr_t __aeabi_read_tp(void) 47 47 { 48 return NULL;48 return (uintptr_t) NULL; 49 49 } 50 50 -
uspace/lib/c/generic/async.c
ra9c6b966 r0b4a67a 536 536 if (callid) 537 537 ipc_answer_0(callid, ENOMEM); 538 return NULL;538 return (uintptr_t) NULL; 539 539 } 540 540 … … 556 556 if (callid) 557 557 ipc_answer_0(callid, ENOMEM); 558 return NULL;558 return (uintptr_t) NULL; 559 559 } 560 560 -
uspace/lib/c/generic/io/klog.c
ra9c6b966 r0b4a67a 52 52 void klog_update(void) 53 53 { 54 (void) __SYSCALL3(SYS_KLOG, 1, NULL, 0);54 (void) __SYSCALL3(SYS_KLOG, 1, (uintptr_t) NULL, 0); 55 55 } 56 56 -
uspace/lib/c/include/unistd.h
ra9c6b966 r0b4a67a 41 41 42 42 #ifndef NULL 43 #define NULL 0UL43 #define NULL ((void *) 0) 44 44 #endif 45 45 -
uspace/srv/hid/kbd/genarch/gsp.c
ra9c6b966 r0b4a67a 198 198 if (t == NULL) { 199 199 printf("gsp_step: not found\n"); 200 *mods = NULL;201 *key = NULL;200 *mods = 0; 201 *key = 0; 202 202 return 0; 203 203 } -
uspace/srv/hw/netif/dp8390/dp8390.c
ra9c6b966 r0b4a67a 432 432 dep->de_write_iovec.iod_iovec[0].iov_size = size; 433 433 dep->de_write_iovec.iod_iovec_s = 1; 434 dep->de_write_iovec.iod_iovec_addr = NULL;434 dep->de_write_iovec.iod_iovec_addr = (uintptr_t) NULL; 435 435 436 436 if (size < ETH_MIN_PACK_SIZE || size > ETH_MAX_PACK_SIZE_TAGGED) … … 1015 1015 dep->de_read_iovec.iod_iovec[0].iov_size = length; 1016 1016 dep->de_read_iovec.iod_iovec_s = 1; 1017 dep->de_read_iovec.iod_iovec_addr = NULL;1017 dep->de_read_iovec.iod_iovec_addr = (uintptr_t) NULL; 1018 1018 1019 1019 last = page + (length - 1) / DP_PAGESIZE; -
uspace/srv/hw/netif/dp8390/dp8390_module.c
ra9c6b966 r0b4a67a 127 127 dep->received_count = 0; 128 128 fibril_rwlock_write_unlock(&netif_globals.lock); 129 nil_received_msg(phone, device_id, received, NULL);129 nil_received_msg(phone, device_id, received, SERVICE_NONE); 130 130 }else{ 131 131 fibril_rwlock_write_unlock(&netif_globals.lock);
Note:
See TracChangeset
for help on using the changeset viewer.