Changeset 13a638d in mainline for kernel/generic/src/console/console.c


Ignore:
Timestamp:
2009-04-06T19:32:22Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
Children:
3636964
Parents:
149d14e5
Message:

move event notification to the ipc directory (where it probably belogs to, side-by-side to IRQ notifications)
cleanup the notification code a little bit (there is probably no need to allocate two structured dynamically)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    r149d14e5 r13a638d  
    4242#include <ddi/irq.h>
    4343#include <ddi/ddi.h>
    44 #include <event/event.h>
     44#include <ipc/event.h>
    4545#include <ipc/irq.h>
    4646#include <arch.h>
     
    5353#include <string.h>
    5454
    55 #define KLOG_SIZE     PAGE_SIZE
    56 #define KLOG_LENGTH   (KLOG_SIZE / sizeof(wchar_t))
     55#define KLOG_PAGES    4
     56#define KLOG_LENGTH   (KLOG_PAGES * PAGE_SIZE / sizeof(wchar_t))
    5757#define KLOG_LATENCY  8
    5858
     
    9696       
    9797        ASSERT((uintptr_t) faddr % FRAME_SIZE == 0);
    98         ASSERT(KLOG_SIZE % FRAME_SIZE == 0);
    9998       
    10099        klog_parea.pbase = (uintptr_t) faddr;
     
    103102       
    104103        sysinfo_set_item_val("klog.faddr", NULL, (unative_t) faddr);
    105         sysinfo_set_item_val("klog.pages", NULL, SIZE2FRAMES(sizeof(klog)));
     104        sysinfo_set_item_val("klog.pages", NULL, KLOG_PAGES);
    106105       
    107106        spinlock_lock(&klog_lock);
Note: See TracChangeset for help on using the changeset viewer.