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/arch.h

    r80d9d83 r1f12fab  
    4141#include <typedefs.h>
    4242
     43#define NWINDOWS        8
     44
    4345/* ASI assignments: */
    4446#define ASI_CACHEMISS   0x01
     
    6365} bootinfo_t;
    6466
    65 void arch_pre_main(bootinfo_t *bootinfo);
     67extern uintptr_t kernel_sp;
     68extern uintptr_t uspace_wbuf;
     69
     70extern void arch_pre_main(void *unused, bootinfo_t *bootinfo);
    6671
    6772#endif
Note: See TracChangeset for help on using the changeset viewer.