repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mkfs: move directory entry manipulation
[minix.git]
/
kernel
/
arch
/
i386
/
debugreg.S
blob
5bb6d785cbca2ca501304585001e833f4ccc5d8f
1
#include <machine/asm.h>
2
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
12
13
/*
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)
21
22
/*
23
* void ld_dr0(unsigned long value)
24
* unsigned long st_dr0(void)
25
*/
26
LD_ST_REG(dr6)
27
LD_ST_REG(dr7)