blob: ffb6b8cfc6d59c73851c82060ff5bcbedeb8c615 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __M68K_FPU_H
2#define __M68K_FPU_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
5/*
6 * MAX floating point unit state size (FSAVE/FRESTORE)
7 */
8
9#if defined(CONFIG_M68020) || defined(CONFIG_M68030)
Geert Uytterhoevenedfd92f2008-07-17 21:16:12 +020010#define FPSTATESIZE (216)
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#elif defined(CONFIG_M68040)
Geert Uytterhoevenedfd92f2008-07-17 21:16:12 +020012#define FPSTATESIZE (96)
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#elif defined(CONFIG_M68KFPU_EMU)
Geert Uytterhoevenedfd92f2008-07-17 21:16:12 +020014#define FPSTATESIZE (28)
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#elif defined(CONFIG_M68060)
Geert Uytterhoevenedfd92f2008-07-17 21:16:12 +020016#define FPSTATESIZE (12)
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#else
Geert Uytterhoevenedfd92f2008-07-17 21:16:12 +020018#define FPSTATESIZE (0)
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#endif
20
21#endif /* __M68K_FPU_H */