mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-27 20:38:52 +09:00
![Tom Rini](/assets/img/avatar_default.png)
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
124 lines
2.1 KiB
C
124 lines
2.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Various register offset definitions for debuggers, core file
|
|
* examiners and whatnot.
|
|
*
|
|
* Copyright (C) 1995, 1999 by Ralf Baechle
|
|
* Copyright (C) 1995, 1999 Silicon Graphics
|
|
*/
|
|
#ifndef __ASM_MIPS_REG_H
|
|
#define __ASM_MIPS_REG_H
|
|
|
|
#if defined(CONFIG_32BIT) || defined(WANT_COMPAT_REG_H)
|
|
|
|
#define EF_R0 6
|
|
#define EF_R1 7
|
|
#define EF_R2 8
|
|
#define EF_R3 9
|
|
#define EF_R4 10
|
|
#define EF_R5 11
|
|
#define EF_R6 12
|
|
#define EF_R7 13
|
|
#define EF_R8 14
|
|
#define EF_R9 15
|
|
#define EF_R10 16
|
|
#define EF_R11 17
|
|
#define EF_R12 18
|
|
#define EF_R13 19
|
|
#define EF_R14 20
|
|
#define EF_R15 21
|
|
#define EF_R16 22
|
|
#define EF_R17 23
|
|
#define EF_R18 24
|
|
#define EF_R19 25
|
|
#define EF_R20 26
|
|
#define EF_R21 27
|
|
#define EF_R22 28
|
|
#define EF_R23 29
|
|
#define EF_R24 30
|
|
#define EF_R25 31
|
|
|
|
/*
|
|
* k0/k1 unsaved
|
|
*/
|
|
#define EF_R26 32
|
|
#define EF_R27 33
|
|
|
|
#define EF_R28 34
|
|
#define EF_R29 35
|
|
#define EF_R30 36
|
|
#define EF_R31 37
|
|
|
|
/*
|
|
* Saved special registers
|
|
*/
|
|
#define EF_LO 38
|
|
#define EF_HI 39
|
|
|
|
#define EF_CP0_EPC 40
|
|
#define EF_CP0_BADVADDR 41
|
|
#define EF_CP0_STATUS 42
|
|
#define EF_CP0_CAUSE 43
|
|
#define EF_UNUSED0 44
|
|
|
|
#define EF_SIZE 180
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_64BIT
|
|
|
|
#define EF_R0 0
|
|
#define EF_R1 1
|
|
#define EF_R2 2
|
|
#define EF_R3 3
|
|
#define EF_R4 4
|
|
#define EF_R5 5
|
|
#define EF_R6 6
|
|
#define EF_R7 7
|
|
#define EF_R8 8
|
|
#define EF_R9 9
|
|
#define EF_R10 10
|
|
#define EF_R11 11
|
|
#define EF_R12 12
|
|
#define EF_R13 13
|
|
#define EF_R14 14
|
|
#define EF_R15 15
|
|
#define EF_R16 16
|
|
#define EF_R17 17
|
|
#define EF_R18 18
|
|
#define EF_R19 19
|
|
#define EF_R20 20
|
|
#define EF_R21 21
|
|
#define EF_R22 22
|
|
#define EF_R23 23
|
|
#define EF_R24 24
|
|
#define EF_R25 25
|
|
|
|
/*
|
|
* k0/k1 unsaved
|
|
*/
|
|
#define EF_R26 26
|
|
#define EF_R27 27
|
|
|
|
#define EF_R28 28
|
|
#define EF_R29 29
|
|
#define EF_R30 30
|
|
#define EF_R31 31
|
|
|
|
/*
|
|
* Saved special registers
|
|
*/
|
|
#define EF_LO 32
|
|
#define EF_HI 33
|
|
|
|
#define EF_CP0_EPC 34
|
|
#define EF_CP0_BADVADDR 35
|
|
#define EF_CP0_STATUS 36
|
|
#define EF_CP0_CAUSE 37
|
|
|
|
#define EF_SIZE 304 /* size in bytes */
|
|
|
|
#endif /* CONFIG_64BIT */
|
|
|
|
#endif /* __ASM_MIPS_REG_H */
|