cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

switch_to.h (406B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __ALPHA_SWITCH_TO_H
      3#define __ALPHA_SWITCH_TO_H
      4
      5
      6struct task_struct;
      7extern struct task_struct *alpha_switch_to(unsigned long, struct task_struct *);
      8
      9#define switch_to(P,N,L)						 \
     10  do {									 \
     11    (L) = alpha_switch_to(virt_to_phys(&task_thread_info(N)->pcb), (P)); \
     12    check_mmu_context();						 \
     13  } while (0)
     14
     15#endif /* __ALPHA_SWITCH_TO_H */