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 <asm/uaccess.h>
#include "../../../../lib/inflate.c"

Go to the source code of this file.

Macros

#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()   (inptr < insize ? inbuf[inptr++] : fill_inbuf())
 
#define Assert(cond, msg)
 
#define Trace(x)
 
#define Tracev(x)
 
#define Tracevv(x)
 
#define Tracec(c, x)
 
#define Tracecv(c, x)
 
#define HEAP_SIZE   0x10000
 
#define SCR   *((volatile unsigned char *)0xffff8a)
 
#define TDR   *((volatile unsigned char *)0xffff8b)
 
#define SSR   *((volatile unsigned char *)0xffff8c)
 
#define STACK_SIZE   (4096)
 

Typedefs

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

Functions

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

Variables

char input_data []
 
int input_len
 
int _text
 
int _end
 
long user_stack [STACK_SIZE]
 
longstack_start = &user_stack[STACK_SIZE]
 

Macro Definition Documentation

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

Definition at line 40 of file misc.c.

#define Assert (   cond,
  msg 
)

Definition at line 59 of file misc.c.

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

Definition at line 44 of file misc.c.

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

Definition at line 41 of file misc.c.

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

Definition at line 45 of file misc.c.

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

Definition at line 42 of file misc.c.

#define get_byte ( )    (inptr < insize ? inbuf[inptr++] : fill_inbuf())

Definition at line 48 of file misc.c.

#define HEAP_SIZE   0x10000

Definition at line 87 of file misc.c.

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

Definition at line 23 of file misc.c.

#define OF (   args)    args

Definition at line 18 of file misc.c.

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

Definition at line 43 of file misc.c.

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

Definition at line 46 of file misc.c.

#define SCR   *((volatile unsigned char *)0xffff8a)

Definition at line 91 of file misc.c.

#define SSR   *((volatile unsigned char *)0xffff8c)

Definition at line 93 of file misc.c.

#define STACK_SIZE   (4096)

Definition at line 166 of file misc.c.

#define STATIC   static

Definition at line 19 of file misc.c.

#define TDR   *((volatile unsigned char *)0xffff8b)

Definition at line 92 of file misc.c.

#define Trace (   x)

Definition at line 60 of file misc.c.

#define Tracec (   c,
  x 
)

Definition at line 63 of file misc.c.

#define Tracecv (   c,
  x 
)

Definition at line 64 of file misc.c.

#define Tracev (   x)

Definition at line 61 of file misc.c.

#define Tracevv (   x)

Definition at line 62 of file misc.c.

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

Definition at line 29 of file misc.c.

Typedef Documentation

typedef unsigned char uch

Definition at line 25 of file misc.c.

typedef unsigned long ulg

Definition at line 27 of file misc.c.

typedef unsigned short ush

Definition at line 26 of file misc.c.

Function Documentation

void decompress_kernel ( void  )

Definition at line 170 of file misc.c.

void* memcpy ( void __dest,
__const void __src,
size_t  __n 
)

Definition at line 109 of file misc.c.

void* memset ( void s,
int  c,
size_t  n 
)

Definition at line 100 of file misc.c.

int puts ( const char s)

Definition at line 95 of file misc.c.

Variable Documentation

int _end
int _text
char input_data[]
int input_len
long* stack_start = &user_stack[STACK_SIZE]

Definition at line 168 of file misc.c.

long user_stack[STACK_SIZE]

Definition at line 167 of file misc.c.