make vfs & filesystems use failable copying
[minix3.git] / kernel / arch / i386 / debugreg.S
blob5bb6d785cbca2ca501304585001e833f4ccc5d8f
1 #include <machine/asm.h>
3 #define LD_ST_REG(reg)                                                  ;\
4 ENTRY(ld_##reg)                                                 ;\
5         mov     4(%esp), %eax                                           ;\
6         mov     %eax,   %reg                                            ;\
7         ret                                                             ;\
8                                                                         ;\
9 ENTRY(st_##reg)                                                 ;\
10         mov     %reg,   %eax                                            ;\
11         ret
14  * void ld_dr0(phys_bytes value)
15  * phys_bytes st_dr0(void)
16  */
17 LD_ST_REG(dr0)
18 LD_ST_REG(dr1)
19 LD_ST_REG(dr2)
20 LD_ST_REG(dr3)
23  * void ld_dr0(unsigned long value)
24  * unsigned long st_dr0(void)
25  */
26 LD_ST_REG(dr6)
27 LD_ST_REG(dr7)