Ignore:
Timestamp:
2013-10-07T20:00:34Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a73ebf0
Parents:
80d9d83
Message:

First attempt to implement preemptive trap handlers
and switch to userspace. Preemptive traps are needed
for at least page faults, as page fault handling code
can trigger window underflow/overflow exceptions.

This commit also introduces userspace window buffer
for saving userspace register windows (just as in
sparc64).

These changes are unfinished and far from working
correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/proc/thread.h

    r80d9d83 r1f12fab  
    11/*
    2  * Copyright (c) 2010 Martin Decky
     2 * Copyright (c) 2013 Jakub Klama
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup abs32leproc
     29/** @addtogroup sparc32proc
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef KERN_abs32le_THREAD_H_
    36 #define KERN_abs32le_THREAD_H_
     35#ifndef KERN_sparc32_THREAD_H_
     36#define KERN_sparc32_THREAD_H_
    3737
    3838#include <typedefs.h>
    3939
    4040typedef struct {
     41        /** Buffer for register windows with userspace content. */
     42        uint8_t *uspace_window_buffer;
    4143} thread_arch_t;
    42 
    43 #define thr_constructor_arch(thr)
    44 #define thr_destructor_arch(thr)
    4544
    4645#endif
Note: See TracChangeset for help on using the changeset viewer.