#include <stddef.h>#include <sys/types.h>#include <sys/stat.h>#include <stdlib.h>#include <stdio.h>#include <limits.h>#include <string.h>#include <errno.h>#include <a.out.h>#include <minix/config.h>#include <minix/const.h>#include <minix/type.h>#include <minix/syslib.h>#include <minix/tty.h>#include <sys/video.h>#include <kernel/const.h>#include <kernel/type.h>#include <ibm/partition.h>#include "rawfs.h"#include "image.h"#include "boot.h"Go to the source code of this file.
Classes | |
| struct | process |
Defines | |
| #define | BIOS 1 |
| #define | nil 0 |
| #define | _POSIX_SOURCE 1 |
| #define | _MINIX 1 |
| #define | click_shift clck_shft |
| #define | K_I386 0x0001 |
| #define | K_CLAIM 0x0002 |
| #define | K_CHMEM 0x0004 |
| #define | K_HIGH 0x0008 |
| #define | K_HDR 0x0010 |
| #define | K_RET 0x0020 |
| #define | K_INT86 0x0040 |
| #define | K_MEML 0x0080 |
| #define | K_BRET 0x0100 |
| #define | K_ALL 0x01FF |
| #define | PROCESS_MAX 16 |
| #define | KERNEL_IDX 0 |
| #define | FS 2 |
| #define | MAGIC_OFF 0 |
| #define | CLICK_OFF 2 |
| #define | FLAGS_OFF 4 |
| #define | KERNEL_D_MAGIC 0x526F |
| #define | P_SIZ_OFF 0 |
| #define | P_INIT_OFF 4 |
| #define | between(a, c, z) ((unsigned) ((c) - (a)) <= ((z) - (a))) |
| #define | align(a, n) (((u32_t)(a) + ((u32_t)(n) - 1)) & ~((u32_t)(n) - 1)) |
| #define | SECBUFS 16 |
| #define | LINES 25 |
| #define | CHARS 80 |
Functions | |
| void | pretty_image (char *image) |
| void | raw_clear (u32_t addr, u32_t count) |
| int | params2params (char *params, size_t psize) |
| void | patch_sizes (void) |
| int | selected (char *name) |
| u32_t | proc_size (struct image_header *hdr) |
| u32_t | file_vir2sec (u32_t vsec) |
| u32_t | flat_vir2sec (u32_t vsec) |
| char * | get_sector (u32_t vsec) |
| int | get_clickshift (u32_t ksec, struct image_header *hdr) |
| int | get_segment (u32_t *vsec, long *size, u32_t *addr, u32_t limit) |
| void | exec_image (char *image) |
| ino_t | latest_version (char *version, struct stat *stp) |
| char * | select_image (char *image) |
| void | bootminix (void) |
Variables | |
| int | serial_line |
| u16_t | vid_port |
| u32_t | vid_mem_base |
| u32_t | vid_mem_size |
| int | n_procs |
| unsigned | click_shift |
| unsigned | click_size |
| unsigned | k_flags |
| u32_t | reboot_code |
| off_t | image_off |
| off_t | image_size |
| u32_t(* | vir2sec )(u32_t vsec) |
| #define _MINIX 1 |
Definition at line 7 of file bootimage.c.
| #define _POSIX_SOURCE 1 |
Definition at line 6 of file bootimage.c.
Definition at line 127 of file bootimage.c.
Definition at line 78 of file bootimage.c.
| #define BIOS 1 |
Definition at line 4 of file bootimage.c.
| #define CHARS 80 |
| #define CLICK_OFF 2 |
Definition at line 69 of file bootimage.c.
| #define click_shift clck_shft |
Definition at line 37 of file bootimage.c.
| #define FLAGS_OFF 4 |
Definition at line 70 of file bootimage.c.
| #define FS 2 |
Definition at line 56 of file bootimage.c.
| #define K_ALL 0x01FF |
Definition at line 49 of file bootimage.c.
| #define K_BRET 0x0100 |
Definition at line 48 of file bootimage.c.
| #define K_CHMEM 0x0004 |
Definition at line 42 of file bootimage.c.
| #define K_CLAIM 0x0002 |
Definition at line 41 of file bootimage.c.
| #define K_HDR 0x0010 |
Definition at line 44 of file bootimage.c.
| #define K_HIGH 0x0008 |
Definition at line 43 of file bootimage.c.
| #define K_I386 0x0001 |
Definition at line 40 of file bootimage.c.
| #define K_INT86 0x0040 |
Definition at line 46 of file bootimage.c.
| #define K_MEML 0x0080 |
Definition at line 47 of file bootimage.c.
| #define K_RET 0x0020 |
Definition at line 45 of file bootimage.c.
| #define KERNEL_D_MAGIC 0x526F |
Definition at line 71 of file bootimage.c.
| #define KERNEL_IDX 0 |
Definition at line 55 of file bootimage.c.
| #define LINES 25 |
| #define MAGIC_OFF 0 |
Definition at line 68 of file bootimage.c.
| #define nil 0 |
Definition at line 5 of file bootimage.c.
| #define P_INIT_OFF 4 |
Definition at line 75 of file bootimage.c.
| #define P_SIZ_OFF 0 |
Definition at line 74 of file bootimage.c.
| #define PROCESS_MAX 16 |
Definition at line 54 of file bootimage.c.
| #define SECBUFS 16 |
| void bootminix | ( | void | ) |
Definition at line 756 of file bootimage.c.
| void exec_image | ( | char * | image | ) |
Definition at line 422 of file bootimage.c.
Definition at line 256 of file bootimage.c.
Definition at line 270 of file bootimage.c.
| int get_clickshift | ( | u32_t | ksec, | |
| struct image_header * | hdr | |||
| ) |
Definition at line 328 of file bootimage.c.
| char* get_sector | ( | u32_t | vsec | ) |
Definition at line 276 of file bootimage.c.
Definition at line 356 of file bootimage.c.
| ino_t latest_version | ( | char * | version, | |
| struct stat * | stp | |||
| ) |
Definition at line 673 of file bootimage.c.
| int params2params | ( | char * | params, | |
| size_t | psize | |||
| ) |
Definition at line 133 of file bootimage.c.
| void patch_sizes | ( | void | ) |
Definition at line 189 of file bootimage.c.
| void pretty_image | ( | char * | image | ) |
Definition at line 80 of file bootimage.c.
| u32_t proc_size | ( | struct image_header * | hdr | ) |
Definition at line 241 of file bootimage.c.
Definition at line 105 of file bootimage.c.
| char* select_image | ( | char * | image | ) |
Definition at line 697 of file bootimage.c.
| int selected | ( | char * | name | ) |
Definition at line 226 of file bootimage.c.
| unsigned click_shift |
Definition at line 128 of file bootimage.c.
| unsigned click_size |
Definition at line 129 of file bootimage.c.
| off_t image_off |
Definition at line 253 of file bootimage.c.
| off_t image_size |
Definition at line 253 of file bootimage.c.
| unsigned k_flags |
Definition at line 130 of file bootimage.c.
| int n_procs |
Definition at line 65 of file bootimage.c.
Definition at line 131 of file bootimage.c.
| int serial_line |
1.5.8