git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decoupling Architectural-specific Code (#35)
[lunaix-os.git]
/
lunaix-os
/
hal
/
char
/
devnull.c
diff --git
a/lunaix-os/hal/char/devnull.c
b/lunaix-os/hal/char/devnull.c
index 747e05f315693c560f6c78e23a2a5dbf301b81c2..77650b0c922816192d6b72785e25124de754cb8b 100644
(file)
--- a/
lunaix-os/hal/char/devnull.c
+++ b/
lunaix-os/hal/char/devnull.c
@@
-1,11
+1,11
@@
#include <lunaix/device.h>
#include <lunaix/device.h>
-#include <lunaix/mm/page.h>
+#include <lunaix/mm/page
table
.h>
static int
__null_wr_pg(struct device* dev, void* buf, size_t offset)
{
// do nothing
static int
__null_wr_pg(struct device* dev, void* buf, size_t offset)
{
// do nothing
- return P
G
_SIZE;
+ return P
AGE
_SIZE;
}
static int
}
static int
@@
-38,7
+38,7
@@
pdev_nulldev_init(struct device_def* def)
devnull->ops.read_page = __null_rd_pg;
devnull->ops.read = __null_rd;
devnull->ops.read_page = __null_rd_pg;
devnull->ops.read = __null_rd;
-
device_register
(devnull, &def->class, "null");
+
register_device
(devnull, &def->class, "null");
return 0;
}
return 0;
}