diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2010-07-05 16:53:09 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2010-07-05 16:53:09 +0000 |
commit | fb8039ba14201040aea7635d24aca925f89b78da (patch) | |
tree | b68f4309236d14f7299fbca6ce196836900cac58 /sys/arch | |
parent | e6fc742671ba63946702e5a74f642627ecd8b00b (diff) |
remove a debugging panic, as pointed out by mike;
also, remove the flag variable in the setup routine, as we'll
always register with a flag value of 0.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/aesni.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/amd64/amd64/aesni.c b/sys/arch/amd64/amd64/aesni.c index cf3ac8e4012..821ea320f69 100644 --- a/sys/arch/amd64/amd64/aesni.c +++ b/sys/arch/amd64/amd64/aesni.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aesni.c,v 1.5 2010/07/05 16:33:36 thib Exp $ */ +/* $OpenBSD: aesni.c,v 1.6 2010/07/05 16:53:08 thib Exp $ */ /*- * Copyright (c) 2003 Jason Wright * Copyright (c) 2003, 2004 Theo de Raadt @@ -93,7 +93,6 @@ void aesni_setup(void) { int algs[CRYPTO_ALGORITHM_MAX + 1]; - int flags = 0; /* CRYPTOCAP_F_SOFTWARE */ aesni_sc = malloc(sizeof(*aesni_sc), M_DEVBUF, M_NOWAIT|M_ZERO); if (aesni_sc == NULL) @@ -111,7 +110,7 @@ aesni_setup(void) algs[CRYPTO_SHA2_384_HMAC] = CRYPTO_ALG_FLAG_SUPPORTED; algs[CRYPTO_SHA2_512_HMAC] = CRYPTO_ALG_FLAG_SUPPORTED; - aesni_sc->sc_cid = crypto_get_driverid(flags); + aesni_sc->sc_cid = crypto_get_driverid(0); if (aesni_sc->sc_cid < 0) { free(aesni_sc, M_DEVBUF); return; @@ -156,9 +155,6 @@ aesni_newsession(u_int32_t *sidp, struct cryptoini *cri) ses->ses_used = 1; - if ((uint64_t)ses % 16 != 0) - panic("aesni: unaligned address %p\n", ses); - fpu_kernel_enter(); for (c = cri; c != NULL; c = c->cri_next) { switch (c->cri_alg) { |