Return to fpu.h CVS log | Up to [local] / sys / arch / amd64 / include |
File: [local] / sys / arch / amd64 / include / fpu.h (download)
Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:05:05 2008 UTC (16 years, 3 months ago) by nbrk
Import of OpenBSD 4.2 release kernel tree with initial code to support Jornada 720/728, StrongARM 1110-based handheld PC. At this point kernel roots on NFS and boots into vfs_mountroot() and traps. What is supported: - glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode (needs some palette tweaks for non black/white/blue colors, i think) - saic, SA11x0 interrupt controller (needs cleanup) - sacom, SA11x0 UART (supported only as boot console for now) - SA11x0 GPIO controller fully supported (but can't handle multiple interrupt handlers on one gpio pin) - sassp, SSP port on SA11x0 that attaches spibus - Jornada microcontroller (jmcu) to control kbd, battery, etc throught the SPI bus (wskbd attaches on jmcu, but not tested) - tod functions seem work - initial code for SA-1111 (chip companion) : this is TODO Next important steps, i think: - gpio and intc on sa1111 - pcmcia support for sa11x0 (and sa1111 help logic) - REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs) - root on wd0! (using already supported PCMCIA-ATA) |
/* $OpenBSD: fpu.h,v 1.3 2006/10/01 10:52:10 kettenis Exp $ */ /* $NetBSD: fpu.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */ #ifndef _AMD64_FPU_H_ #define _AMD64_FPU_H_ #include <sys/types.h> /* * amd64 only uses the extended save/restore format used * by fxsave/fsrestore, to always deal with the SSE registers, * which are part of the ABI to pass floating point values. * Must be stored in memory on a 16-byte boundary. */ struct fxsave64 { u_int16_t fx_fcw; u_int16_t fx_fsw; u_int8_t fx_ftw; u_int8_t fx_unused1; u_int16_t fx_fop; u_int64_t fx_rip; u_int64_t fx_rdp; u_int32_t fx_mxcsr; u_int32_t fx_mxcsr_mask; u_int64_t fx_st[8][2]; /* 8 normal FP regs */ u_int64_t fx_xmm[16][2]; /* 16 SSE2 registers */ u_int8_t fx_unused3[96]; } __attribute__((packed)); struct savefpu { struct fxsave64 fp_fxsave; /* see above */ u_int16_t fp_ex_sw; /* saved status from last exception */ u_int16_t fp_ex_tw; /* saved tag from last exception */ }; /* * The i387 defaults to Intel extended precision mode and round to nearest, * with all exceptions masked. */ #define __INITIAL_NPXCW__ 0x037f #define __INITIAL_MXCSR__ 0x1f80 #define __INITIAL_MXCSR_MASK__ 0xffbf #ifdef _KERNEL /* * XXX */ struct trapframe; struct cpu_info; void fpuinit(struct cpu_info *); void fpudrop(void); void fpusave(struct proc *); void fpudiscard(struct proc *); void fputrap(struct trapframe *); void fpusave_proc(struct proc *, int); void fpusave_cpu(struct cpu_info *, int); #endif #endif /* _AMD64_FPU_H_ */