Changeset 97f1691 in mainline for arch/sparc64/src/console.c


Ignore:
Timestamp:
2006-02-28T00:02:39Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7d6ec87
Parents:
d87c3f3
Message:

sparc64 work.
Fix KBD_VIRT_ADDRESS.
Call before_thread_runs() prior to the switch to the thread's stack. Add comment why this is crucial.
Add after_thread_ran() to the scheduler.
Add before_thread_runs_arch() and after_thread_ran_arch() for sparc64, mapping/demapping thread's kernel stack.
Add dummy after_thread_ran_arch() to all other architectures.
Add dtlb_insert_mapping() to promote code reuse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/src/console.c

    rd87c3f3 r97f1691  
    4141#include <proc/thread.h>
    4242#include <synch/mutex.h>
     43#include <arch/mm/tlb.h>
    4344
    4445#define KEYBOARD_POLL_PAUSE     50000   /* 50ms */
     
    7677        ofw_console_active = 0;
    7778        stdin = NULL;
     79
     80        dtlb_insert_mapping(FB_VIRT_ADDRESS, FB_PHYS_ADDRESS, PAGESIZE_4M, true, false);
     81        dtlb_insert_mapping(KBD_VIRT_ADDRESS, KBD_PHYS_ADDRESS, PAGESIZE_8K, true, false);
     82
    7883        fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH/8);
    7984        i8042_init();
Note: See TracChangeset for help on using the changeset viewer.