vm: fix potential null deref
[minix.git] / servers / rs / table.c
blob4bcb40dfba388d42cc3230c8e20f968ab97e46b8
1 /* This file contains the definition of the boot image info tables.
3 * Changes:
4 * Nov 22, 2009: Created (Cristiano Giuffrida)
5 */
7 #define _TABLE
9 #include "inc.h"
11 /* Definition of the boot image priv table. The order of entries in this table
12 * reflects the order boot system services are made runnable and initialized
13 * at boot time.
15 struct boot_image_priv boot_image_priv_table[] = {
16 /*endpoint, label, flags, */
17 {RS_PROC_NR, "rs", RSYS_F },
18 {VM_PROC_NR, "vm", VM_F },
19 {PM_PROC_NR, "pm", SRV_F },
20 {SCHED_PROC_NR,"sched", SRV_F },
21 {VFS_PROC_NR, "vfs", SRV_F },
22 {DS_PROC_NR, "ds", SRV_F },
23 {TTY_PROC_NR, "tty", SRV_F },
24 {MEM_PROC_NR, "memory", SRV_F },
25 {LOG_PROC_NR, "log", SRV_F },
26 {MFS_PROC_NR,"fs_imgrd", SRV_F },
27 {PFS_PROC_NR, "pfs", SRV_F },
28 {INIT_PROC_NR, "init", USR_F },
29 {NULL_BOOT_NR, "", 0, } /* null entry */
32 /* Definition of the boot image sys table. */
33 struct boot_image_sys boot_image_sys_table[] = {
34 /*endpoint, flags */
35 { RS_PROC_NR, SRVR_SF },
36 { VM_PROC_NR, VM_SF },
37 { PM_PROC_NR, SRVR_SF },
38 { VFS_PROC_NR, SRVR_SF },
39 { LOG_PROC_NR, SRV_SF },
40 { MFS_PROC_NR, 0 },
41 { PFS_PROC_NR, SRV_SF },
42 { DEFAULT_BOOT_NR, SRV_SF } /* default entry */
45 /* Definition of the boot image dev table. */
46 struct boot_image_dev boot_image_dev_table[] = {
47 /*endpoint, flags, dev_nr, dev_style, dev_style2 */
48 { TTY_PROC_NR, SRV_DF, TTY_MAJOR, STYLE_TTY, STYLE_CTTY },
49 { MEM_PROC_NR, SRV_DF, MEMORY_MAJOR, STYLE_DEV, STYLE_NDEV },
50 { LOG_PROC_NR, SRV_DF, LOG_MAJOR, STYLE_DEVA, STYLE_NDEV },
51 { PFS_PROC_NR, SRV_DF, UDS_MAJOR, STYLE_CLONE_A,STYLE_NDEV },
52 { DEFAULT_BOOT_NR, SRV_DF, 0, STYLE_NDEV, STYLE_NDEV } /* default
53 * entry