cregit-Linux how code gets into the kernel

Release 4.14 arch/arc/plat-eznps/ctop.c

/*
 * Copyright(c) 2015 EZchip Technologies.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * The full GNU General Public License is included in this distribution in
 * the file called "COPYING".
 */

#include <linux/sched.h>
#include <asm/processor.h>
#include <plat/ctop.h>


void dp_save_restore(struct task_struct *prev, struct task_struct *next) { struct eznps_dp *prev_task_dp = &prev->thread.dp; struct eznps_dp *next_task_dp = &next->thread.dp; /* Here we save all Data Plane related auxiliary registers */ prev_task_dp->eflags = read_aux_reg(CTOP_AUX_EFLAGS); write_aux_reg(CTOP_AUX_EFLAGS, next_task_dp->eflags); prev_task_dp->gpa1 = read_aux_reg(CTOP_AUX_GPA1); write_aux_reg(CTOP_AUX_GPA1, next_task_dp->gpa1); }

Contributors

PersonTokensPropCommitsCommitProp
Noam Camus76100.00%1100.00%
Total76100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Noam Camus86100.00%1100.00%
Total86100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.