OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
h8300
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:15 AM
rwxr-xr-x
📄
Kbuild
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic.h
2.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitops.h
4.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bug.h
263 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
byteorder.h
148 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
cache.h
281 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
1.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
269 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
2.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
flat.h
1.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hash.h
1.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
1.44 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
555 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
1.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kgdb.h
1.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
485 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page_offset.h
37 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci.h
421 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
1.7 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor.h
3.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
1.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
segment.h
886 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
520 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
smp.h
32 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
389 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
1.72 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
1.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
3.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlb.h
166 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
traps.h
1.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
1.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
user.h
3.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: switch_to.h
Close
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _H8300_SWITCH_TO_H #define _H8300_SWITCH_TO_H /* * switch_to(n) should switch tasks to task ptr, first checking that * ptr isn't the current task, in which case it does nothing. This * also clears the TS-flag if the task we switched to has used the * math co-processor latest. */ /* * switch_to() saves the extra registers, that are not saved * automatically by SAVE_SWITCH_STACK in resume(), ie. d0-d5 and * a0-a1. Some of these are used by schedule() and its predecessors * and so we might get see unexpected behaviors when a task returns * with unexpected register values. * * syscall stores these registers itself and none of them are used * by syscall after the function in the syscall has been called. * * Beware that resume now expects *next to be in d1 and the offset of * tss to be in a1. This saves a few instructions as we no longer have * to push them onto the stack and read them back right after. * * 02/17/96 - Jes Sorensen (jds@kom.auc.dk) * * Changed 96/09/19 by Andreas Schwab * pass prev in a0, next in a1, offset of tss in d1, and whether * the mm structures are shared in d2 (to avoid atc flushing). * * H8/300 Porting 2002/09/04 Yoshinori Sato */ asmlinkage void resume(void); #define switch_to(prev, next, last) \ do { \ void *_last; \ __asm__ __volatile__( \ "mov.l %1, er0\n\t" \ "mov.l %2, er1\n\t" \ "mov.l %3, er2\n\t" \ "jsr @_resume\n\t" \ "mov.l er2,%0\n\t" \ : "=r" (_last) \ : "r" (&(prev->thread)), \ "r" (&(next->thread)), \ "g" (prev) \ : "cc", "er0", "er1", "er2", "er3"); \ (last) = _last; \ } while (0) #endif /* _H8300_SWITCH_TO_H */