mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
sparc32: handle leon in cpu.c
A few hardcoded constant were replaced by symbolic versions to improve readability Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Konrad Eisele <konrad@gaisler.com>
This commit is contained in:
parent
b08b5c9c9b
commit
d87d8c11f3
2 changed files with 11 additions and 9 deletions
|
@ -35,7 +35,9 @@
|
|||
#define PSR_VERS 0x0f000000 /* cpu-version field */
|
||||
#define PSR_IMPL 0xf0000000 /* cpu-implementation field */
|
||||
|
||||
#define PSR_VERS_SHIFT 24
|
||||
#define PSR_IMPL_SHIFT 28
|
||||
#define PSR_VERS_SHIFTED_MASK 0xf
|
||||
#define PSR_IMPL_SHIFTED_MASK 0xf
|
||||
|
||||
#define PSR_IMPL_TI 0x4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue