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
A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git]
/
lunaix-os
/
hal
/
rng
/
rngx86.c
diff --git
a/lunaix-os/hal/rng/rngx86.c
b/lunaix-os/hal/rng/rngx86.c
index 0b8a586cd7e057228c2965d4b23ec55f1005577d..b1087406fb3fb49446cfaa3543d5a24ee3e70aa1 100644
(file)
--- a/
lunaix-os/hal/rng/rngx86.c
+++ b/
lunaix-os/hal/rng/rngx86.c
@@
-1,5
+1,5
@@
#include <lunaix/device.h>
#include <lunaix/device.h>
-#include <lunaix/mm/page.h>
+#include <lunaix/mm/page
table
.h>
#include <klibc/string.h>
#include <klibc/string.h>
@@
-19,8
+19,8
@@
rng_fill(void* data, size_t len)
static int
__rand_rd_pg(struct device* dev, void* buf, size_t offset)
{
static int
__rand_rd_pg(struct device* dev, void* buf, size_t offset)
{
- rng_fill(buf, P
G
_SIZE);
- return P
G
_SIZE;
+ rng_fill(buf, P
AGE
_SIZE);
+ return P
AGE
_SIZE;
}
static int
}
static int