]> Zhao Yanbai Git Server - minix.git/commitdiff
Take LOG out of the boot image 94/994/2
authorDavid van Moolenbroek <david@minix3.org>
Sat, 21 Sep 2013 15:35:15 +0000 (17:35 +0200)
committerLionel Sambuc <lionel@minix3.org>
Sat, 1 Mar 2014 08:04:55 +0000 (09:04 +0100)
Change-Id: Id2629776b53aae46629b04a42c15cbbacac9b949

14 files changed:
distrib/sets/lists/minix/md.evbarm
distrib/sets/lists/minix/md.i386
drivers/Makefile
etc/rc
etc/system.conf
etc/usr/rc
include/minix/com.h
kernel/arch/earm/pre_init.c
kernel/table.c
releasetools/Makefile
releasetools/arm_sdimage.sh
releasetools/gen_uEnv.txt.sh
releasetools/release.functions
servers/rs/table.c

index c29a9dd8ed96306ca8f017220ab346c7cbaa3743..b3eb2aab669cb76134875d23e43144ccdd92db87 100644 (file)
@@ -1,18 +1,16 @@
-./boot/minix/.temp/mod07_log           minix-sys
-./boot/minix/.temp/mod08_tty           minix-sys
-./boot/minix/.temp/mod09_mfs           minix-sys
-./boot/minix/.temp/mod10_vm            minix-sys
-./boot/minix/.temp/mod11_pfs           minix-sys
-./boot/minix/.temp/mod12_init          minix-sys
+./boot/minix/.temp/mod07_tty           minix-sys
+./boot/minix/.temp/mod08_mfs           minix-sys
+./boot/minix/.temp/mod09_vm            minix-sys
+./boot/minix/.temp/mod10_pfs           minix-sys
+./boot/minix/.temp/mod11_init          minix-sys
 ./etc/rc.capes                         minix-sys
 ./etc/rc.capes/BB-BONE-WTHR-01         minix-sys
 ./etc/system.conf.d/lan8710a           minix-sys
-./multiboot/mod07_log                  minix-sys
-./multiboot/mod08_tty                  minix-sys
-./multiboot/mod09_mfs                  minix-sys
-./multiboot/mod10_vm                   minix-sys
-./multiboot/mod11_pfs                  minix-sys
-./multiboot/mod12_init                 minix-sys
+./multiboot/mod07_tty                  minix-sys
+./multiboot/mod08_mfs                  minix-sys
+./multiboot/mod09_vm                   minix-sys
+./multiboot/mod10_pfs                  minix-sys
+./multiboot/mod11_init                 minix-sys
 ./sbin/gpio                            minix-sys
 ./usr/bin/eepromread                   minix-sys
 ./usr/include/arm                      minix-sys
index df78faacc0df82ed3915231c56824d672f89c1d9..7b20f39004ef917acc81c5062e9acb68aa976f4c 100644 (file)
@@ -1,10 +1,9 @@
 
-./boot/minix/.temp/mod07_log           minix-sys
-./boot/minix/.temp/mod08_tty           minix-sys
-./boot/minix/.temp/mod09_mfs           minix-sys
-./boot/minix/.temp/mod10_vm            minix-sys
-./boot/minix/.temp/mod11_pfs           minix-sys
-./boot/minix/.temp/mod12_init          minix-sys
+./boot/minix/.temp/mod07_tty           minix-sys
+./boot/minix/.temp/mod08_mfs           minix-sys
+./boot/minix/.temp/mod09_vm            minix-sys
+./boot/minix/.temp/mod10_pfs           minix-sys
+./boot/minix/.temp/mod11_init          minix-sys
 ./etc/system.conf.d/atl2               minix-sys
 ./etc/system.conf.d/dec21140A          minix-sys
 ./etc/system.conf.d/e1000              minix-sys
 ./etc/system.conf.d/rtl8139            minix-sys
 ./etc/system.conf.d/rtl8169            minix-sys
 ./etc/system.conf.d/virtio_net         minix-sys
-./multiboot/mod07_log                  minix-sys
-./multiboot/mod08_tty                  minix-sys
-./multiboot/mod09_mfs                  minix-sys
-./multiboot/mod10_vm                   minix-sys
-./multiboot/mod11_pfs                  minix-sys
-./multiboot/mod12_init                 minix-sys
+./multiboot/mod07_tty                  minix-sys
+./multiboot/mod08_mfs                  minix-sys
+./multiboot/mod09_vm                   minix-sys
+./multiboot/mod10_pfs                  minix-sys
+./multiboot/mod11_init                 minix-sys
 ./sbin/ahci                            minix-sys
 ./sbin/at_wini                         minix-sys
 ./sbin/floppy                          minix-sys
index dd7ed24d41ec5c97838cdc0bbb19475ac8e94643..644a3b4a2f1b43db5fde6d579bc464a8ff1c063e 100644 (file)
@@ -6,11 +6,11 @@
 .if ${MKIMAGEONLY} == "yes"
 
 .if ${MACHINE_ARCH} == "i386"
-SUBDIR=        at_wini floppy log tty pci
+SUBDIR=        at_wini floppy tty pci
 .endif
 
 .if ${MACHINE_ARCH} == "earm"
-SUBDIR= log tty
+SUBDIR= tty
 .endif
 
 .else # ${MKIMAGEONLY} != "yes"
diff --git a/etc/rc b/etc/rc
index e241c2752a9a19b3592d8b0a75918cf9b7674431..af08178c1b79ea5919e2a9ef35563df582c644aa 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -171,8 +171,7 @@ start)
        edit ds
        edit tty
        edit memory
-       edit -p log
-       edit -c pfs
+       edit pfs
        edit init
     fi
 
index 591b70962360759121decea0fbd256c75805b069..91d66df300a0b3cd663ecb2e1d60ff0f43c7c9ca 100644 (file)
@@ -212,24 +212,8 @@ service memory
 
 service log
 {
-       uid     0;
-       ipc     ALL_SYS;        # All system ipc targets allowed
-       system                  # Extra kernel calls allowed:
-               UMAP            # 14
-               VIRCOPY         # 15
-               IRQCTL          # 19
-               INT86           # 20
-               DEVIO           # 21
-               SDEVIO          # 22
-               VDEVIO          # 23
-               ;
-       vm      BASIC;          # Only basic VM calls allowed
-       io      NONE;           # No I/O range allowed
-       irq     NONE;           # No IRQ allowed
-       sigmgr          rs;     # Signal manager is RS
-       scheduler    sched;     # Scheduler is sched
-       priority         2;     # priority queue 2
-       quantum         50;     # default driver quantum
+       ipc             SYSTEM vfs rs vm;
+       priority        2;
 };
 
 service init
@@ -513,7 +497,7 @@ service osscore
                4/1             # Multimedia / Audio device
        ;
        ipc
-               SYSTEM pm rs log tty ds vfs vm
+               SYSTEM pm rs tty ds vfs vm
                pci inet lwip amddev 
                ;
        uid     0;
@@ -537,7 +521,7 @@ service hello
                 DEVIO           # 21
         ;
         ipc
-                SYSTEM pm rs log tty ds vm vfs
+                SYSTEM pm rs tty ds vm vfs
                 pci inet lwip amddev
                 ;
     uid 0;
index bde7f08ec62abb3bdf1c25d7e31c07d9a2bbe9fa..beb67b040b002c55707758cb994555661b38f6b6 100644 (file)
@@ -195,6 +195,8 @@ start)
 
     up -n ipc
 
+    up log -dev /dev/klog
+
     if [ $ARCH = i386 ]
     then
        up -n printer -dev /dev/lp -period 10HZ
index 3b659eeaec9c5b7fe2d0fd2616a7100eb7285a7e..afe40b4d24ac976779cbbaf5a63044211f4ecb28 100644 (file)
 #define VFS_PROC_NR  ((endpoint_t) 1)  /* file system */
 #define RS_PROC_NR   ((endpoint_t) 2)          /* reincarnation server */
 #define MEM_PROC_NR  ((endpoint_t) 3)          /* memory driver (RAM disk, null, etc.) */
-#define LOG_PROC_NR  ((endpoint_t) 4)  /* log device driver */
+#define SCHED_PROC_NR ((endpoint_t) 4) /* scheduler */
 #define TTY_PROC_NR  ((endpoint_t) 5)  /* terminal (TTY) driver */
 #define DS_PROC_NR   ((endpoint_t) 6)   /* data store server */
 #define MFS_PROC_NR  ((endpoint_t) 7)   /* minix root filesystem */
 #define VM_PROC_NR   ((endpoint_t) 8)   /* memory server */
 #define PFS_PROC_NR  ((endpoint_t) 9)  /* pipe filesystem */
-#define SCHED_PROC_NR ((endpoint_t) 10)        /* scheduler */
-#define LAST_SPECIAL_PROC_NR   11      /* An untyped version for
+#define LAST_SPECIAL_PROC_NR   10      /* An untyped version for
                                            computation in macros.*/
 #define INIT_PROC_NR ((endpoint_t) LAST_SPECIAL_PROC_NR)  /* init
                                                         -- goes multiuser */
index 73947905dc46943c4f7217cdc8973a466f955494..c9909017c5d68822e10784fd557453908f8a3330 100644 (file)
@@ -173,7 +173,7 @@ int overlaps(multiboot_module_t *mod, int n, int cmp_mod)
 }
 
 /* XXX: hard-coded stuff for modules */
-#define MB_MODS_NR 12
+#define MB_MODS_NR NR_BOOT_MODULES
 #define MB_MODS_BASE  0x82000000
 #define MB_MODS_ALIGN 0x00800000 /* 8 MB */
 #define MB_MMAP_START 0x80000000
index e77dc201300276d3ec8a21e6e82d66dbae06f9fb..425e23cdfd5db55cc37c2b254bf351df929ee3ea 100644 (file)
@@ -57,7 +57,6 @@ struct boot_image image[NR_BOOT_PROCS] = {
 {SCHED_PROC_NR, "sched" },
 {VFS_PROC_NR,   "vfs"   },
 {MEM_PROC_NR,   "memory"},
-{LOG_PROC_NR,   "log"   },
 {TTY_PROC_NR,   "tty"   },
 {MFS_PROC_NR,   "mfs"   },
 {VM_PROC_NR,    "vm"    },
index 765298dc313d7a5386d1e247f5f291b133e87418..8c7e8526f352d839a72ac8527b12aaa339276f22 100644 (file)
@@ -24,7 +24,6 @@ PROGRAMS+= ${PROGROOT}/servers/pm/pm
 PROGRAMS+= ${PROGROOT}/servers/sched/sched
 PROGRAMS+= ${PROGROOT}/servers/vfs/vfs
 PROGRAMS+= ${PROGROOT}/drivers/memory/memory
-PROGRAMS+= ${PROGROOT}/drivers/log/log
 PROGRAMS+= ${PROGROOT}/drivers/tty/tty
 PROGRAMS+= ${PROGROOT}/servers/mfs/mfs
 PROGRAMS+= ${PROGROOT}/servers/vm/vm
index b79b15167e8b210fe96f9bf258770ad97c6046d9..37e18ab5b494d993cca7a5ed20ce3f61aa92f0e8 100755 (executable)
@@ -181,7 +181,7 @@ do
     mcopy -bsp -i ${IMG_DIR}/fat.img  ${OBJ}/${f}.elf ::${f}.elf
 done
 
-for f in tty memory log
+for f in tty memory
 do
     cp ${OBJ}/drivers/${f}/${f} ${OBJ}/${f}.elf
     ${CROSS_PREFIX}strip -s ${OBJ}/${f}.elf
index e2a8b79d43af2fd07c212bfabff2a677f91f631f..f53f3889f93bce565b686f112fb0d3d35beb1d51 100755 (executable)
@@ -8,12 +8,11 @@ list="0x80200000 kernel.bin
 0x83800000 sched.elf
 0x84000000 vfs.elf
 0x84800000 memory.elf
-0x85000000 log.elf
-0x85800000 tty.elf
-0x86000000 mfs.elf
-0x86800000 vm.elf
-0x87000000 pfs.elf
-0x87800000 init.elf"
+0x85000000 tty.elf
+0x85800000 mfs.elf
+0x86000000 vm.elf
+0x86800000 pfs.elf
+0x87000000 init.elf"
 
 #
 # PREFIX for loading file over tftp to allow hosting multiple
index 7c56407ef68945ff92c8cd1bc861d2ddd1f4a4c7..151b9f98374abae0b0de48817641b9019bb6bf74 100644 (file)
@@ -73,12 +73,11 @@ load=/mod03_pm
 load=/mod04_sched
 load=/mod05_vfs
 load=/mod06_memory
-load=/mod07_log
-load=/mod08_tty
-load=/mod09_mfs
-load=/mod10_vm
-load=/mod11_pfs
-load=/mod12_init
+load=/mod07_tty
+load=/mod08_mfs
+load=/mod09_vm
+load=/mod10_pfs
+load=/mod11_init
 # This space intentionally left blank - leave to appease bootloader!
 # This space intentionally left blank - leave to appease bootloader!
 # This space intentionally left blank - leave to appease bootloader!
index 9ac5c4bee2ea6ee997f4e3eadb8a528c83c7be59..070b8b2fc5f5ee41bf0ab56dea8b09b3bafa0873 100644 (file)
@@ -22,7 +22,6 @@ struct boot_image_priv boot_image_priv_table[] = {
 {DS_PROC_NR,   "ds",     SRV_F  },
 {TTY_PROC_NR,  "tty",    SRV_F  },
 {MEM_PROC_NR,  "memory", SRV_F  },
-{LOG_PROC_NR,  "log",    SRV_F  },
 {MFS_PROC_NR,"fs_imgrd", SRV_F  },
 {PFS_PROC_NR,  "pfs",    SRV_F  },
 {INIT_PROC_NR, "init",   USR_F  },
@@ -36,7 +35,6 @@ struct boot_image_sys boot_image_sys_table[] = {
   { VM_PROC_NR,       VM_SF                             },
   { PM_PROC_NR,       SRVR_SF                           },
   { VFS_PROC_NR,      SRVR_SF                           },
-  { LOG_PROC_NR,      SRV_SF                            },
   { MFS_PROC_NR,      0                                 },
   { PFS_PROC_NR,      SRV_SF                            },
   { DEFAULT_BOOT_NR,  SRV_SF                            } /* default entry */
@@ -47,7 +45,6 @@ struct boot_image_dev boot_image_dev_table[] = {
   /*endpoint,        flags,   dev_nr,       dev_style,  dev_style2 */
   { TTY_PROC_NR,     SRV_DF,  TTY_MAJOR,    STYLE_TTY,  STYLE_CTTY },
   { MEM_PROC_NR,     SRV_DF,  MEMORY_MAJOR, STYLE_DEV,  STYLE_NDEV },
-  { LOG_PROC_NR,     SRV_DF,  LOG_MAJOR,    STYLE_DEV,  STYLE_NDEV },
   { PFS_PROC_NR,     SRV_DF,  UDS_MAJOR,    STYLE_DEV,  STYLE_NDEV },
   { DEFAULT_BOOT_NR, SRV_DF,  0,            STYLE_NDEV, STYLE_NDEV } /* default
                                                                       * entry