ia64/xen-unstable

changeset 8180:df68a9433492

Add padding to ring headers for future expansion.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Dec 02 13:16:13 2005 +0100 (2005-12-02)
parents a21cbe9a111b
children d4ab8e46136c
files xen/include/public/io/ring.h
line diff
     1.1 --- a/xen/include/public/io/ring.h	Fri Dec 02 13:10:25 2005 +0100
     1.2 +++ b/xen/include/public/io/ring.h	Fri Dec 02 13:16:13 2005 +0100
     1.3 @@ -71,6 +71,7 @@ union __name##_sring_entry {            
     1.4  struct __name##_sring {                                                 \
     1.5      RING_IDX req_prod, req_event;                                       \
     1.6      RING_IDX rsp_prod, rsp_event;                                       \
     1.7 +    uint8_t  pad[48];                                                   \
     1.8      union __name##_sring_entry ring[1]; /* variable-length */           \
     1.9  };                                                                      \
    1.10                                                                          \
    1.11 @@ -114,6 +115,7 @@ typedef struct __name##_back_ring __name
    1.12  #define SHARED_RING_INIT(_s) do {                                       \
    1.13      (_s)->req_prod  = (_s)->rsp_prod  = 0;                              \
    1.14      (_s)->req_event = (_s)->rsp_event = 1;                              \
    1.15 +    memset((_s)->pad, 0, sizeof((_s)->pad));                            \
    1.16  } while(0)
    1.17  
    1.18  #define FRONT_RING_INIT(_r, _s, __size) do {                            \