Remove unused variables.
Spotted out by: Christoph Mallon <christoph d0t mallon AT gmx d0t de>
This commit is contained in:
parent
da1e0915c5
commit
027e0d0c50
@ -158,14 +158,12 @@ cb_dumpdata(struct md_pa *mdp, int seqnr, void *arg)
|
||||
{
|
||||
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;
|
||||
|
||||
|
@ -404,11 +404,11 @@ load_kernel(unsigned int kstart, unsigned int curaddr,unsigned int func_end,
|
||||
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]));
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user