summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-12-04 21:35:31 +0100
committerNeal H. Walfield <neal@gnu.org>2008-12-04 21:35:31 +0100
commit095c64e7467d6f29218ddbaa735f3f707b473386 (patch)
tree292da4e37057e7dd6121ac0f38596b2591ee9448 /hurd
parentfe2a8eec056be7e4cde8734a66f1c17bc42bd82c (diff)
Remove l4 dependencies.
2008-12-04 Neal H. Walfield <neal@gnu.org> * t-addr-trans.c: Don't include <l4/math.h> or <l4/types.h>. Include <stdint.h>. (main): Don't use L4_WORDSIZE. Just take the size of a uintptr_t.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/ChangeLog6
-rw-r--r--hurd/t-addr-trans.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/hurd/ChangeLog b/hurd/ChangeLog
index 6c5463a..0d9b99a 100644
--- a/hurd/ChangeLog
+++ b/hurd/ChangeLog
@@ -1,5 +1,11 @@
2008-12-04 Neal H. Walfield <neal@gnu.org>
+ * t-addr-trans.c: Don't include <l4/math.h> or <l4/types.h>.
+ Include <stdint.h>.
+ (main): Don't use L4_WORDSIZE. Just take the size of a uintptr_t.
+
+2008-12-04 Neal H. Walfield <neal@gnu.org>
+
* lock.h: Don't include <atomic.h>.
(ss_lock_trace_dump): Set FUNC to 0, not NULL.
diff --git a/hurd/t-addr-trans.c b/hurd/t-addr-trans.c
index 97819b2..c3607ad 100644
--- a/hurd/t-addr-trans.c
+++ b/hurd/t-addr-trans.c
@@ -1,5 +1,5 @@
/* t-cap.c - Test the implementation of the various cap functions.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2008 Free Software Foundation, Inc.
Written by Neal H. Walfield <neal@gnu.org>.
This file is part of the GNU Hurd.
@@ -20,8 +20,7 @@
#include <assert.h>
#include <stdbool.h>
-#include <l4/math.h>
-#include <l4/types.h>
+#include <stdint.h>
#include "stddef.h"
#include "addr-trans.h"
@@ -57,10 +56,10 @@ main (int argc, char *argv[])
== subpage_size_log2);
int gdepth;
- for (gdepth = 0; gdepth < L4_WORDSIZE; gdepth ++)
+ for (gdepth = 0; gdepth < sizeof (uintptr_t) * 8; gdepth ++)
{
int guard_bits;
- for (guard_bits = 0; guard_bits < L4_WORDSIZE; guard_bits ++)
+ for (guard_bits = 0; guard_bits < sizeof (uintptr_t) * 8; guard_bits ++)
{
int guard = (1 << guard_bits) - 1;
r = CAP_ADDR_TRANS_SET_GUARD (&cap_addr_trans, guard, gdepth);