summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-30 17:00:43 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-30 17:00:43 +0000
commit9458c10559e3c1880f7da7317d5ff16a86d579fd (patch)
treecc8a3b2ddae789d8a863e5df2b0c3fa1abde252e /sys/arch/amd64
parent3b111c81f3a2c23c9674b4190c11259b6122bfdf (diff)
remove two useless defines.
fixup arguments to the fpu_kernel_enter/exit. from mike
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/aesni.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/arch/amd64/amd64/aesni.c b/sys/arch/amd64/amd64/aesni.c
index 7b6024f787c..57a33b5dd06 100644
--- a/sys/arch/amd64/amd64/aesni.c
+++ b/sys/arch/amd64/amd64/aesni.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aesni.c,v 1.1 2010/06/29 21:34:11 thib Exp $ */
+/* $OpenBSD: aesni.c,v 1.2 2010/06/30 17:00:42 thib Exp $ */
/*-
* Copyright (c) 2003 Jason Wright
* Copyright (c) 2003, 2004 Theo de Raadt
@@ -44,9 +44,6 @@
#define AESCTR_IVSIZE 8
#define AESCTR_BLOCKSIZE 16
-#define AESCTR_MINKEY 16+4
-#define AESCTR_MAXKEY 32+4
-
struct aesni_sess {
uint32_t ses_ekey[4 * (AES_MAXROUNDS + 1)];
uint32_t ses_dkey[4 * (AES_MAXROUNDS + 1)];
@@ -164,7 +161,7 @@ aesni_newsession(u_int32_t *sidp, struct cryptoini *cri)
if ((uint64_t)ses % 16 != 0)
panic("aesni: unaligned address %p\n", ses);
- fpu_kernel_enter(0);
+ fpu_kernel_enter();
for (c = cri; c != NULL; c = c->cri_next) {
switch (c->cri_alg) {
case CRYPTO_AES_CBC:
@@ -250,7 +247,7 @@ aesni_newsession(u_int32_t *sidp, struct cryptoini *cri)
return (EINVAL);
}
}
- fpu_kernel_exit(0);
+ fpu_kernel_exit();
*sidp = ses->ses_sid;
return (0);
@@ -456,7 +453,7 @@ aesni_process(struct cryptop *crp)
goto out;
}
- fpu_kernel_enter(0);
+ fpu_kernel_enter();
for (crd = crp->crp_desc; crd; crd = crd->crd_next) {
switch (crd->crd_alg) {
case CRYPTO_AES_CBC:
@@ -484,7 +481,7 @@ aesni_process(struct cryptop *crp)
}
}
cleanup:
- fpu_kernel_exit(0);
+ fpu_kernel_exit();
out:
crp->crp_etype = err;
crypto_done(crp);