Subversion Repositories HelenOS

Rev

Rev 4548 | Rev 4644 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4548 Rev 4594
Line 54... Line 54...
54
#include <io/color.h>
54
#include <io/color.h>
55
#include <io/style.h>
55
#include <io/style.h>
56
#include <async.h>
56
#include <async.h>
57
#include <fibril.h>
57
#include <fibril.h>
58
#include <bool.h>
58
#include <bool.h>
-
 
59
#include <stdio.h>
59
 
60
 
60
#include "font-8x16.h"
61
#include "font-8x16.h"
61
#include "fb.h"
62
#include "fb.h"
62
#include "main.h"
63
#include "main.h"
63
#include "../console/screenbuffer.h"
64
#include "../console/screenbuffer.h"
Line 1065... Line 1066...
1065
    case IPC_M_SHARE_OUT:
1066
    case IPC_M_SHARE_OUT:
1066
        /* We accept one area for data interchange */
1067
        /* We accept one area for data interchange */
1067
        if (IPC_GET_ARG1(*call) == shm_id) {
1068
        if (IPC_GET_ARG1(*call) == shm_id) {
1068
            void *dest = as_get_mappable_page(IPC_GET_ARG2(*call));
1069
            void *dest = as_get_mappable_page(IPC_GET_ARG2(*call));
1069
            shm_size = IPC_GET_ARG2(*call);
1070
            shm_size = IPC_GET_ARG2(*call);
1070
            if (!ipc_answer_1(callid, EOK, (sysarg_t) dest))
1071
            if (ipc_answer_1(callid, EOK, (sysarg_t) dest)) {
1071
                shm = dest;
-
 
1072
            else
-
 
1073
                shm_id = 0;
1072
                shm_id = 0;
-
 
1073
                return false;
-
 
1074
            }
-
 
1075
            shm = dest;
1074
           
1076
           
1075
            if (shm[0] != 'P')
1077
            if (shm[0] != 'P')
1076
                return false;
1078
                return false;
1077
           
1079
           
1078
            return true;
1080
            return true;