Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
misc.c File Reference
#include <linux/types.h>
#include <arch/svinto.h>
#include "../../../../../lib/inflate.c"

Go to the source code of this file.

Macros

#define KERNEL_LOAD_ADR   0x40004000
 
#define OF(args)   args
 
#define STATIC   static
 
#define memzero(s, n)   memset((s), 0, (n))
 
#define WSIZE   0x8000 /* Window size must be at least 32k, */
 
#define ASCII_FLAG   0x01 /* bit 0 set: file probably ascii text */
 
#define CONTINUATION   0x02 /* bit 1 set: continuation of multi-part gzip file */
 
#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */
 
#define ORIG_NAME   0x08 /* bit 3 set: original file name present */
 
#define COMMENT   0x10 /* bit 4 set: file comment present */
 
#define ENCRYPTED   0x20 /* bit 5 set: file is encrypted */
 
#define RESERVED   0xC0 /* bit 6,7: reserved */
 
#define get_byte()   (inbuf[inptr++])
 
#define Assert(cond, msg)
 
#define Trace(x)
 
#define Tracev(x)
 
#define Tracevv(x)
 
#define Tracec(c, x)
 
#define Tracecv(c, x)
 
#define SEROUT(S, N)
 

Typedefs

typedef unsigned char uch
 
typedef unsigned short ush
 
typedef unsigned long ulg
 

Functions

voidmemset (void *s, int c, size_t n)
 
voidmemcpy (void *__dest, __const void *__src, size_t __n)
 
void setup_normal_output_buffer (void)
 
void decompress_kernel (void)
 

Variables

unsigned inptr = 0
 
charinput_data
 
int _end
 

Macro Definition Documentation

#define ASCII_FLAG   0x01 /* bit 0 set: file probably ascii text */

Definition at line 65 of file misc.c.

#define Assert (   cond,
  msg 
)

Definition at line 99 of file misc.c.

#define COMMENT   0x10 /* bit 4 set: file comment present */

Definition at line 69 of file misc.c.

#define CONTINUATION   0x02 /* bit 1 set: continuation of multi-part gzip file */

Definition at line 66 of file misc.c.

#define ENCRYPTED   0x20 /* bit 5 set: file is encrypted */

Definition at line 70 of file misc.c.

#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */

Definition at line 67 of file misc.c.

#define get_byte ( )    (inbuf[inptr++])

Definition at line 73 of file misc.c.

#define KERNEL_LOAD_ADR   0x40004000

Definition at line 19 of file misc.c.

#define memzero (   s,
  n 
)    memset((s), 0, (n))

Definition at line 45 of file misc.c.

#define OF (   args)    args

Definition at line 39 of file misc.c.

#define ORIG_NAME   0x08 /* bit 3 set: original file name present */

Definition at line 68 of file misc.c.

#define RESERVED   0xC0 /* bit 6,7: reserved */

Definition at line 71 of file misc.c.

#define SEROUT (   S,
  N 
)
Value:
do { \
while (!(*R_SERIAL ## N ## _STATUS & (1 << 5))) \
; \
*R_SERIAL ## N ## _TR_DATA = *s++; \
} while (0)

Definition at line 146 of file misc.c.

#define STATIC   static

Definition at line 40 of file misc.c.

#define Trace (   x)

Definition at line 100 of file misc.c.

#define Tracec (   c,
  x 
)

Definition at line 103 of file misc.c.

#define Tracecv (   c,
  x 
)

Definition at line 104 of file misc.c.

#define Tracev (   x)

Definition at line 101 of file misc.c.

#define Tracevv (   x)

Definition at line 102 of file misc.c.

#define WSIZE   0x8000 /* Window size must be at least 32k, */

Definition at line 51 of file misc.c.

Typedef Documentation

typedef unsigned char uch

Definition at line 47 of file misc.c.

typedef unsigned long ulg

Definition at line 49 of file misc.c.

typedef unsigned short ush

Definition at line 48 of file misc.c.

Function Documentation

void decompress_kernel ( void  )

Definition at line 277 of file misc.c.

void* memcpy ( void __dest,
__const void __src,
size_t  __n 
)
void* memset ( void s,
int  c,
size_t  n 
)

Definition at line 116 of file string.c.

void setup_normal_output_buffer ( void  )

Definition at line 228 of file misc.c.

Variable Documentation

int _end
unsigned inptr = 0

Definition at line 57 of file misc.c.

char* input_data