Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __M68K_FPU_H |
| 2 | #define __M68K_FPU_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
| 5 | /* |
| 6 | * MAX floating point unit state size (FSAVE/FRESTORE) |
| 7 | */ |
| 8 | |
| 9 | #if defined(CONFIG_M68020) || defined(CONFIG_M68030) |
Geert Uytterhoeven | edfd92f | 2008-07-17 21:16:12 +0200 | [diff] [blame^] | 10 | #define FPSTATESIZE (216) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #elif defined(CONFIG_M68040) |
Geert Uytterhoeven | edfd92f | 2008-07-17 21:16:12 +0200 | [diff] [blame^] | 12 | #define FPSTATESIZE (96) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #elif defined(CONFIG_M68KFPU_EMU) |
Geert Uytterhoeven | edfd92f | 2008-07-17 21:16:12 +0200 | [diff] [blame^] | 14 | #define FPSTATESIZE (28) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #elif defined(CONFIG_M68060) |
Geert Uytterhoeven | edfd92f | 2008-07-17 21:16:12 +0200 | [diff] [blame^] | 16 | #define FPSTATESIZE (12) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #else |
Geert Uytterhoeven | edfd92f | 2008-07-17 21:16:12 +0200 | [diff] [blame^] | 18 | #define FPSTATESIZE (0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #endif |
| 20 | |
| 21 | #endif /* __M68K_FPU_H */ |