/[hurd]/hurd-l4/laden/laden.h
ViewVC logotype

Diff of /hurd-l4/laden/laden.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by marcus, Sat Jul 26 17:26:09 2003 UTC revision 1.2 by marcus, Thu Sep 4 01:29:35 2003 UTC
# Line 51  extern int memory_map_size; Line 51  extern int memory_map_size;
51  #define add_memory_map(start,end,mtype,msubtype)                                \  #define add_memory_map(start,end,mtype,msubtype)                                \
52    ({                                                                    \    ({                                                                    \
53      if (memory_map_size == MEMORY_MAP_MAX)                              \      if (memory_map_size == MEMORY_MAP_MAX)                              \
54        panic ("Error: No more memory descriptor slots available.\n");    \        panic ("No more memory descriptor slots available.\n");           \
55        memory_map[memory_map_size].low = (start) >> 10;                  \        memory_map[memory_map_size].low = (start) >> 10;                  \
56        memory_map[memory_map_size].high = ((end) + (1 << 10) - 1) >> 10; \        memory_map[memory_map_size].high = ((end) + (1 << 10) - 1) >> 10; \
57        memory_map[memory_map_size].virtual = 0;                          \        memory_map[memory_map_size].virtual = 0;                          \
# Line 135  void putchar (int chr); Line 135  void putchar (int chr);
135  void printf (const char *fmt, ...);  void printf (const char *fmt, ...);
136    
137  /* Print an error message and fail.  */  /* Print an error message and fail.  */
138  #define panic(...) ({ printf (__VA_ARGS__); putchar ('\n'); shutdown (); })  #define panic(...)                              \
139      ({                                            \
140        printf ("laden: error: ");                  \
141        printf (__VA_ARGS__);                       \
142        putchar ('\n');                             \
143        shutdown ();                                \
144      })
145    
146  /* True if debug mode is enabled.  */  /* True if debug mode is enabled.  */
147  extern int debug;  extern int debug;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26