Changeset 0fa6044 in mainline for kernel/generic/include/macros.h


Ignore:
Timestamp:
2006-08-29T15:35:44Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e11ae91
Parents:
32fffef0
Message:

sparc64 work.

Fix bug introduced in revision 1852. When fixing CWP,
the input registers of the current window (i.e. output
registers of the window belonging to the interrupted
context) must be preserved. Preserve those registers
in memory. Sure there exist more efficient ways how to
copy the inputs.

Simplify before_thread_runs_arch(), resp. after_thread_ran_arch(),
and make them install, resp. uninstall, DTLB locked mapping for
eventual userspace window buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/macros.h

    r32fffef0 r0fa6044  
    3333 */
    3434
    35 #ifndef __MACROS_H__
    36 #define __MACROS_H__
     35#ifndef KERN_MACROS_H_
     36#define KERN_MACROS_H_
    3737
    3838#include <arch/types.h>
     
    4949#define max(a,b)        ((a) > (b) ? (a) : (b))
    5050
    51 /** Return true if the interlvals overlap. */
     51/** Return true if the interlvals overlap.
     52 *
     53 * @param s1 Start address of the first interval.
     54 * @param sz1 Size of the first interval.
     55 * @param s2 Start address of the second interval.
     56 * @param sz2 Size of the second interval.
     57 */
    5258static inline int overlaps(uintptr_t s1, size_t sz1, uintptr_t s2, size_t sz2)
    5359{
Note: See TracChangeset for help on using the changeset viewer.