Server IP : 104.21.38.3 / Your IP : 162.158.88.39 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-143/arch/powerpc/include/asm/ |
Upload File : |
/* * The PowerPC (32/64) specific defines / externs for KGDB. Based on * the previous 32bit and 64bit specific files, which had the following * copyrights: * * PPC64 Mods (C) 2005 Frank Rowand ([email protected]) * PPC Mods (C) 2004 Tom Rini ([email protected]) * PPC Mods (C) 2003 John Whitney ([email protected]) * PPC Mods (C) 1998 Michael Tesch ([email protected]) * * * Copyright (C) 1995 David S. Miller ([email protected]) * Author: Tom Rini <[email protected]> * * 2006 (c) MontaVista Software, Inc. This file is licensed under * the terms of the GNU General Public License version 2. This program * is licensed "as is" without any warranty of any kind, whether express * or implied. */ #ifdef __KERNEL__ #ifndef __POWERPC_KGDB_H__ #define __POWERPC_KGDB_H__ #ifndef __ASSEMBLY__ #define BREAK_INSTR_SIZE 4 #define BUFMAX ((NUMREGBYTES * 2) + 512) #define OUTBUFMAX ((NUMREGBYTES * 2) + 512) #define BREAK_INSTR 0x7d821008 /* twge r2, r2 */ static inline void arch_kgdb_breakpoint(void) { asm(stringify_in_c(.long BREAK_INSTR)); } #define CACHE_FLUSH_IS_SAFE 1 #define DBG_MAX_REG_NUM 70 /* The number bytes of registers we have to save depends on a few * things. For 64bit we default to not including vector registers and * vector state registers. */ #ifdef CONFIG_PPC64 /* * 64 bit (8 byte) registers: * 32 gpr, 32 fpr, nip, msr, link, ctr * 32 bit (4 byte) registers: * ccr, xer, fpscr */ #define NUMREGBYTES ((68 * 8) + (3 * 4)) #define NUMCRITREGBYTES 184 #else /* CONFIG_PPC32 */ /* On non-E500 family PPC32 we determine the size by picking the last * register we need, but on E500 we skip sections so we list what we * need to store, and add it up. */ #ifndef CONFIG_E500 #define MAXREG (PT_FPSCR+1) #else /* 32 GPRs (8 bytes), nip, msr, ccr, link, ctr, xer, acc (8 bytes), spefscr*/ #define MAXREG ((32*2)+6+2+1) #endif #define NUMREGBYTES (MAXREG * sizeof(int)) /* CR/LR, R1, R2, R13-R31 inclusive. */ #define NUMCRITREGBYTES (23 * sizeof(int)) #endif /* 32/64 */ #endif /* !(__ASSEMBLY__) */ #endif /* !__POWERPC_KGDB_H__ */ #endif /* __KERNEL__ */