Changeset cf2af94 in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2011-02-09T11:46:47Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb15135a
Parents:
a49c4002 (diff), 0b37882 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Local modifications:

  • change pipefs and ext2 to build again (use async_* calls instead of ipc_*)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    ra49c4002 rcf2af94  
    3737#include <stdio.h>
    3838#include <unistd.h>
    39 #include <ipc/ipc.h>
    4039#include <vfs/vfs.h>
    4140#include <bool.h>
     
    5756#define DEVFS_MOUNT_POINT  "/dev"
    5857
    59 #define SCRATCH_FS_TYPE      "tmpfs"
    60 #define SCRATCH_MOUNT_POINT  "/scratch"
     58#define TMPFS_FS_TYPE      "tmpfs"
     59#define TMPFS_MOUNT_POINT  "/tmp"
    6160
    6261#define DATA_FS_TYPE      "fat"
    63 #define DATA_DEVICE       "bd/disk0"
     62#define DATA_DEVICE       "bd/ata1disk0"
    6463#define DATA_MOUNT_POINT  "/data"
    6564
     
    235234}
    236235
    237 static bool mount_scratch(void)
    238 {
    239         int rc = mount(SCRATCH_FS_TYPE, SCRATCH_MOUNT_POINT, "", "", 0);
    240         return mount_report("Scratch filesystem", SCRATCH_MOUNT_POINT,
    241             SCRATCH_FS_TYPE, NULL, rc);
     236static bool mount_tmpfs(void)
     237{
     238        int rc = mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0);
     239        return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT,
     240            TMPFS_FS_TYPE, NULL, rc);
    242241}
    243242
     
    271270        }
    272271       
    273         mount_scratch();
    274        
     272        mount_tmpfs();
     273       
     274        spawn("/srv/apic");
     275        spawn("/srv/i8259");
    275276        spawn("/srv/fhc");
    276277        spawn("/srv/obio");
Note: See TracChangeset for help on using the changeset viewer.