l4-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch: kip.h


From: Johan Rydberg
Subject: patch: kip.h
Date: Mon, 29 Sep 2003 02:35:54 +0200

Hi,

The layout of the memory description structure is invalid for the
big endian case.  This patch fixes it for PowerPC, but I don't know
if it is valid for 64-bit targets.  Marcus, is it?

Index: kip.h
===================================================================
RCS file: /cvsroot/hurd/hurd-l4/libl4/l4/kip.h,v
retrieving revision 1.6
diff -u -p -r1.6 kip.h
--- kip.h       18 Sep 2003 22:30:31 -0000      1.6
+++ kip.h       29 Sep 2003 00:32:27 -0000
@@ -235,7 +235,7 @@ typedef struct
 
 struct l4_memory_desc
 {
-  _L4_BITFIELD5
+  _L4_BITFIELD7
   (l4_word_t,
    /* The type of the memory descriptor.  */
    _L4_BITFIELD (type, 4),
@@ -250,10 +250,8 @@ struct l4_memory_desc
    /* 1 if memory is virtual, 0 if it is physical.  */
    _L4_BITFIELD (virtual, 1),
 
-   _L4_BITFIELD_32_64 (low, 22, 54));
+   _L4_BITFIELD_32_64 (low, 22, 54),
 
-  _L4_BITFIELD2
-  (l4_word_t,
    _L4_BITFIELD (__pad2, 10),
 
    _L4_BITFIELD_32_64 (high, 22, 54));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]