<commit_before>/*	$OpenBSD: psl.h,v 1.4 1996/05/02 06:44:46 niklas Exp $	*/
/*	$NetBSD: psl.h,v 1.8 1996/04/21 21:13:22 veego Exp $	*/

#ifndef _MACHINE_PSL_H_
#define _MACHINE_PSL_H_

#include <m68k/psl.h>

#if defined(_KERNEL) && !defined(_LOCORE)

/*
 * spl functions; all are normally done in-line
 */
#include <machine/psl.h>

#ifdef _KERNEL

static __inline int
splraise(npsl)
	register int npsl;
{
        register int opsl;

        __asm __volatile ("clrl %0; movew sr,%0; movew %1,sr" : "&=d" (opsl) :
	    "di" (npsl));
        return opsl;
}

#ifdef IPL_REMAP_1

extern int isr_exter_ipl;
extern void walk_ipls __P((int, int));

static __inline int
splx(npsl)
	register int npsl;
{
        register int opsl;

        __asm __volatile ("clrl %0; movew sr,%0" : "=d" (opsl));
	if ((isr_exter_ipl << 8) > (npsl & PSL_IPL))
		walk_ipls(isr_exter_ipl, npsl);
        __asm __volatile("movew %0,sr" : : "di" (npsl));<commit_msg>Fixup of a merge error<commit_after>/*	$OpenBSD: psl.h,v 1.5 1996/05/02 07:33:43 niklas Exp $	*/
/*	$NetBSD: psl.h,v 1.8 1996/04/21 21:13:22 veego Exp $	*/

#ifndef _MACHINE_PSL_H_
#define _MACHINE_PSL_H_

#include <m68k/psl.h>

#if defined(_KERNEL) && !defined(_LOCORE)

static __inline int
splraise(npsl)
	register int npsl;
{
        register int opsl;

        __asm __volatile ("clrl %0; movew sr,%0; movew %1,sr" : "&=d" (opsl) :
	    "di" (npsl));
        return opsl;
}

#ifdef IPL_REMAP_1

extern int isr_exter_ipl;
extern void walk_ipls __P((int, int));

static __inline int
splx(npsl)
	register int npsl;
{
        register int opsl;

        __asm __volatile ("clrl %0; movew sr,%0" : "=d" (opsl));
	if ((isr_exter_ipl << 8) > (npsl & PSL_IPL))
		walk_ipls(isr_exter_ipl, npsl);
        __asm __volatile("movew %0,sr" : : "di" (npsl));
{'fraction_non_alphanumeric': 0.15544332210998876, 'fraction_numerical': 0.04713804713804714, 'mean_word_length': 3.479899497487437, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1039373', 'n_tokens_mistral': 880, 'n_tokens_neox': 791, 'n_words': 190}