svn commit: r188019 - in head/sys/arm: arm sa11x0
Olivier Houchard
cognet at FreeBSD.org
Mon Feb 2 12:09:15 PST 2009
Author: cognet
Date: Mon Feb 2 20:09:14 2009
New Revision: 188019
URL: http://svn.freebsd.org/changeset/base/188019
Log:
Remove unused variables.
Spotted out by: Christoph Mallon <christoph d0t mallon AT gmx d0t de>
Modified:
head/sys/arm/arm/dump_machdep.c
head/sys/arm/arm/elf_trampoline.c
head/sys/arm/arm/pmap.c
head/sys/arm/arm/vm_machdep.c
head/sys/arm/sa11x0/assabet_machdep.c
Modified: head/sys/arm/arm/dump_machdep.c
==============================================================================
--- head/sys/arm/arm/dump_machdep.c Mon Feb 2 19:54:16 2009 (r188018)
+++ head/sys/arm/arm/dump_machdep.c Mon Feb 2 20:09:14 2009 (r188019)
@@ -158,14 +158,12 @@ cb_dumpdata(struct md_pa *mdp, int seqnr
{
struct dumperinfo *di = (struct dumperinfo*)arg;
vm_paddr_t pa;
- vm_offset_t va;
uint32_t pgs;
size_t counter, sz, chunk;
int c, error;
error = 0; /* catch case in which chunk size is 0 */
counter = 0;
- va = 0;
pgs = mdp->md_size / PAGE_SIZE;
pa = mdp->md_start;
Modified: head/sys/arm/arm/elf_trampoline.c
==============================================================================
--- head/sys/arm/arm/elf_trampoline.c Mon Feb 2 19:54:16 2009 (r188018)
+++ head/sys/arm/arm/elf_trampoline.c Mon Feb 2 20:09:14 2009 (r188019)
@@ -404,11 +404,11 @@ load_kernel(unsigned int kstart, unsigne
int symtabindex = -1;
int symstrindex = -1;
vm_offset_t lastaddr = 0;
- Elf_Addr ssym = 0, esym = 0;
+ Elf_Addr ssym = 0;
Elf_Dyn *dp;
eh = (Elf32_Ehdr *)kstart;
- ssym = esym = 0;
+ ssym = 0;
entry_point = (void*)eh->e_entry;
memcpy(phdr, (void *)(kstart + eh->e_phoff ),
eh->e_phnum * sizeof(phdr[0]));
Modified: head/sys/arm/arm/pmap.c
==============================================================================
--- head/sys/arm/arm/pmap.c Mon Feb 2 19:54:16 2009 (r188018)
+++ head/sys/arm/arm/pmap.c Mon Feb 2 20:09:14 2009 (r188019)
@@ -3102,7 +3102,7 @@ void
pmap_remove_all(vm_page_t m)
{
pv_entry_t pv;
- pt_entry_t *ptep, pte;
+ pt_entry_t *ptep;
struct l2_bucket *l2b;
boolean_t flush = FALSE;
pmap_t curpm;
@@ -3130,7 +3130,6 @@ pmap_remove_all(vm_page_t m)
l2b = pmap_get_l2_bucket(pv->pv_pmap, pv->pv_va);
KASSERT(l2b != NULL, ("No l2 bucket"));
ptep = &l2b->l2b_kva[l2pte_index(pv->pv_va)];
- pte = *ptep;
*ptep = 0;
PTE_SYNC_CURRENT(pv->pv_pmap, ptep);
pmap_free_l2_bucket(pv->pv_pmap, l2b, 1);
Modified: head/sys/arm/arm/vm_machdep.c
==============================================================================
--- head/sys/arm/arm/vm_machdep.c Mon Feb 2 19:54:16 2009 (r188018)
+++ head/sys/arm/arm/vm_machdep.c Mon Feb 2 20:09:14 2009 (r188019)
@@ -108,14 +108,13 @@ void
cpu_fork(register struct thread *td1, register struct proc *p2,
struct thread *td2, int flags)
{
- struct pcb *pcb1, *pcb2;
+ struct pcb *pcb2;
struct trapframe *tf;
struct switchframe *sf;
struct mdproc *mdp2;
if ((flags & RFPROC) == 0)
return;
- pcb1 = td1->td_pcb;
pcb2 = (struct pcb *)(td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1;
#ifdef __XSCALE__
#ifndef CPU_XSCALE_CORE3
Modified: head/sys/arm/sa11x0/assabet_machdep.c
==============================================================================
--- head/sys/arm/sa11x0/assabet_machdep.c Mon Feb 2 19:54:16 2009 (r188018)
+++ head/sys/arm/sa11x0/assabet_machdep.c Mon Feb 2 20:09:14 2009 (r188019)
@@ -210,12 +210,10 @@ initarm(void *arg, void *arg2)
struct pv_addr md_addr;
struct pv_addr md_bla;
int loop;
- u_int kerneldatasize, symbolsize;
u_int l1pagetable;
vm_offset_t freemempos;
vm_offset_t lastalloced;
vm_offset_t lastaddr;
- vm_size_t pt_size;
uint32_t memsize = 32 * 1024 * 1024;
sa1110_uart_vaddr = SACOM1_VBASE;
@@ -232,8 +230,6 @@ initarm(void *arg, void *arg2)
physical_end = lastaddr;
physical_freestart = (((vm_offset_t)physical_end) + PAGE_MASK) & ~PAGE_MASK;
md_addr.pv_va = md_addr.pv_pa = MDROOT_ADDR;
- kerneldatasize = (u_int32_t)&end - (u_int32_t)KERNVIRTADDR;
- symbolsize = 0;
freemempos = (vm_offset_t)round_page(physical_freestart);
memset((void *)freemempos, 0, 256*1024);
/* Define a macro to simplify memory allocation */
@@ -272,7 +268,6 @@ initarm(void *arg, void *arg2)
* This page will just contain the system vectors and can be
* shared by all processes.
*/
- pt_size = round_page(freemempos) - physical_freestart;
/* Allocate stacks for all modes */
valloc_pages(irqstack, IRQ_STACK_SIZE);
More information about the svn-src-all
mailing list