projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use macros for 8259A PIC registers, instead of writing them literally.
[pintos-anon]
/
doc
/
userprog.texi
diff --git
a/doc/userprog.texi
b/doc/userprog.texi
index 5bd0bb2b0d5681a14ceeeca5e49d9ff2b1ef724c..612bb81ba553166d0796c84a923155a7e404ce45 100644
(file)
--- a/
doc/userprog.texi
+++ b/
doc/userprog.texi
@@
-443,7
+443,7
@@
put_user (uint8_t *udst, uint8_t byte)
{
int error_code;
asm ("movl $1f, %0; movb %b2, %1; 1:"
- : "=&a" (error_code), "=m" (*udst) : "
r
" (byte));
+ : "=&a" (error_code), "=m" (*udst) : "
q
" (byte));
return error_code != -1;
}
@end verbatim