Module Name: src
Committed By: christos
Date: Mon Nov 4 16:55:31 UTC 2013
Modified Files:
src/sys/arch/alpha/tc: tc_bus_mem.c
Log Message:
remove unused code
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/alpha/tc/tc_bus_mem.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/alpha/tc/tc_bus_mem.c
diff -u src/sys/arch/alpha/tc/tc_bus_mem.c:1.34 src/sys/arch/alpha/tc/tc_bus_mem.c:1.35
--- src/sys/arch/alpha/tc/tc_bus_mem.c:1.34 Sun Feb 5 21:14:16 2012
+++ src/sys/arch/alpha/tc/tc_bus_mem.c Mon Nov 4 11:55:31 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: tc_bus_mem.c,v 1.34 2012/02/06 02:14:16 matt Exp $ */
+/* $NetBSD: tc_bus_mem.c,v 1.35 2013/11/04 16:55:31 christos Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: tc_bus_mem.c,v 1.34 2012/02/06 02:14:16 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tc_bus_mem.c,v 1.35 2013/11/04 16:55:31 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -466,17 +466,11 @@ tc_mem_write_1(void *v, bus_space_handle
{
if ((memh & TC_SPACE_SPARSE) != 0) {
- volatile uint64_t *p, vl;
- uint64_t shift, msk;
-
- shift = off & 0x3;
+ volatile uint64_t *p;
off &= 0x3;
p = (uint64_t *)(memh + (off << 1));
- msk = ~(0x1 << shift) & 0xf;
- vl = (msk << 32) | (((uint64_t)val) << (shift * 8));
-
*p = val;
} else {
volatile uint8_t *p;
@@ -492,17 +486,12 @@ tc_mem_write_2(void *v, bus_space_handle
{
if ((memh & TC_SPACE_SPARSE) != 0) {
- volatile uint64_t *p, vl;
- uint64_t shift, msk;
+ volatile uint64_t *p;
- shift = off & 0x2;
off &= 0x3;
p = (uint64_t *)(memh + (off << 1));
- msk = ~(0x3 << shift) & 0xf;
- vl = (msk << 32) | (((uint64_t)val) << (shift * 8));
-
*p = val;
} else {
volatile uint16_t *p;