diff options
Diffstat (limited to 'sys/arch/sparc64/stand/ofwboot')
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/Locore.c | 8 | ||||
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/alloc.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/boot.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/elfXX_exec.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/openfirm.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/srt0.s | 4 |
6 files changed, 16 insertions, 16 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/Locore.c b/sys/arch/sparc64/stand/ofwboot/Locore.c index 8bb954407a3..ba9d8626e8d 100644 --- a/sys/arch/sparc64/stand/ofwboot/Locore.c +++ b/sys/arch/sparc64/stand/ofwboot/Locore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: Locore.c,v 1.3 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: Locore.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: Locore.c,v 1.1 2000/08/20 14:58:36 mrg Exp $ */ /* @@ -814,15 +814,15 @@ OF_claim(virt, size, align) */ paddr_t paddr; - void* newvirt = NULL; + void * newvirt = NULL; if (virt == NULL) { - if ((virt = (void*)OF_alloc_virt(size, align)) == (void*)-1) { + if ((virt = (void *)OF_alloc_virt(size, align)) == (void *)-1) { printf("OF_alloc_virt(%d,%d) failed w/%x\n", size, align, virt); return (void *)-1; } } else { - if ((newvirt = (void*)OF_claim_virt((vaddr_t)virt, size)) == (void*)-1) { + if ((newvirt = (void *)OF_claim_virt((vaddr_t)virt, size)) == (void *)-1) { printf("OF_claim_virt(%x,%d) failed w/%x\n", virt, size, newvirt); return (void *)-1; } diff --git a/sys/arch/sparc64/stand/ofwboot/alloc.c b/sys/arch/sparc64/stand/ofwboot/alloc.c index 39d5258ada4..7fd70b4e2a0 100644 --- a/sys/arch/sparc64/stand/ofwboot/alloc.c +++ b/sys/arch/sparc64/stand/ofwboot/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.2 2001/08/20 19:55:33 jason Exp $ */ +/* $OpenBSD: alloc.c,v 1.3 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: alloc.c,v 1.1 2000/08/20 14:58:37 mrg Exp $ */ /* @@ -178,7 +178,7 @@ free(ptr, size) void *ptr; unsigned size; /* only for consistenct check */ { - register struct ml *a = (struct ml *)((char*)ptr - OVERHEAD); + register struct ml *a = (struct ml *)((char *)ptr - OVERHEAD); #ifdef ALLOC_TRACE printf("free(%lx, %u) (origsize %u)\n", (u_long)ptr, size, a->size); diff --git a/sys/arch/sparc64/stand/ofwboot/boot.c b/sys/arch/sparc64/stand/ofwboot/boot.c index 58ea26c65da..f5d983f41bb 100644 --- a/sys/arch/sparc64/stand/ofwboot/boot.c +++ b/sys/arch/sparc64/stand/ofwboot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.5 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: boot.c,v 1.6 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: boot.c,v 1.3 2001/05/31 08:55:19 mrg Exp $ */ /* * Copyright (c) 1997, 1999 Eduardo E. Horvath. All rights reserved. @@ -166,7 +166,7 @@ chain(pentry, args, ssym, esym) int l, machine_tag; long newargs[3]; - entry = (void*)(long)pentry; + entry = (void *)(long)pentry; freeall(); /* @@ -442,7 +442,7 @@ elf32_exec(fd, elf, entryp, ssymp, esymp) if (phdr.p_filesz < phdr.p_memsz) { printf("+%lu@0x%lx", phdr.p_memsz - phdr.p_filesz, (u_long)(phdr.p_vaddr + phdr.p_filesz)); - bzero((void*)phdr.p_vaddr + phdr.p_filesz, + bzero((void *)phdr.p_vaddr + phdr.p_filesz, phdr.p_memsz - phdr.p_filesz); } first = 0; diff --git a/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c b/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c index 252b48e1cec..d8ceeb14e1f 100644 --- a/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c +++ b/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elfXX_exec.c,v 1.3 2001/09/20 23:26:02 jason Exp $ */ +/* $OpenBSD: elfXX_exec.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: elfXX_exec.c,v 1.2 2001/08/15 20:08:15 eeh Exp $ */ /* @@ -49,7 +49,7 @@ #define MEG (1024*1024) #if 0 -int CAT3(elf,ELFSIZE,_exec) __P((int, CAT3(Elf,ELFSIZE,_Ehdr) *, u_int64_t *, void **, void **)); +int CAT3(elf,ELFSIZE,_exec)(int, CAT3(Elf,ELFSIZE,_Ehdr) *, u_int64_t *, void **, void **); #endif #if defined(ELFSIZE) && (ELFSIZE == 32) #define ELF_ALIGN(x) (((x)+3)&(~3)) @@ -123,7 +123,7 @@ CAT3(elf, ELFSIZE, _exec)(fd, elf, entryp, ssymp, esymp) if (phdr.p_filesz < phdr.p_memsz) { printf("+%lu@0x%lx", (u_long)phdr.p_memsz - phdr.p_filesz, (u_long)(phdr.p_vaddr + phdr.p_filesz)); - bzero((void*)(long)phdr.p_vaddr + phdr.p_filesz, + bzero((void *)(long)phdr.p_vaddr + phdr.p_filesz, (size_t)phdr.p_memsz - phdr.p_filesz); } first = 0; diff --git a/sys/arch/sparc64/stand/ofwboot/openfirm.h b/sys/arch/sparc64/stand/ofwboot/openfirm.h index 5bdb18b3980..47e41197470 100644 --- a/sys/arch/sparc64/stand/ofwboot/openfirm.h +++ b/sys/arch/sparc64/stand/ofwboot/openfirm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: openfirm.h,v 1.3 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: openfirm.h,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: openfirm.h,v 1.1 2000/08/20 14:58:42 mrg Exp $ */ /* @@ -55,5 +55,5 @@ int OF_seek(u_int handle, u_int64_t pos); void *OF_claim(void *virt, u_int size, u_int align); void OF_release(void *virt, u_int size); int OF_milliseconds(void); -void OF_chain __P((void *addr, u_int size, void (*entry)(), void *parm, u_int parmlen)); +void OF_chain(void *addr, u_int size, void (*entry)(), void *parm, u_int parmlen); diff --git a/sys/arch/sparc64/stand/ofwboot/srt0.s b/sys/arch/sparc64/stand/ofwboot/srt0.s index 72e28ed3c5d..8ffa5aa900b 100644 --- a/sys/arch/sparc64/stand/ofwboot/srt0.s +++ b/sys/arch/sparc64/stand/ofwboot/srt0.s @@ -1,4 +1,4 @@ -/* $OpenBSD: srt0.s,v 1.2 2001/08/20 19:55:33 jason Exp $ */ +/* $OpenBSD: srt0.s,v 1.3 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: srt0.s,v 1.1 2000/08/20 14:58:42 mrg Exp $ */ /* @@ -118,7 +118,7 @@ _start: nop /* - * void syncicache(void* start, int size) + * void syncicache(void *start, int size) * * I$ flush. Really simple. Just flush over the whole range. */ |