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
feat: fstat now handle symbolic link
[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 af11802a43378de27c63f40ee62cb911e6ca4629..f398c662a0cb87c13666ec29ae872d34cf058098 100644
(file)
--- a/
lunaix-os/hal/rng/rngx86.c
+++ b/
lunaix-os/hal/rng/rngx86.c
@@
-31,7
+31,7
@@
__rand_rd(struct device* dev, void* buf, size_t offset, size_t len)
int
pdev_randdev_init(struct device_def* devdef)
{
int
pdev_randdev_init(struct device_def* devdef)
{
- struct device* devrand = device_addseq(NULL, NULL, "rand");
+ struct device* devrand = device_addseq(NULL,
&devdef->class,
NULL, "rand");
devrand->ops.read = __rand_rd;
devrand->ops.read_page = __rand_rd_pg;
devrand->ops.read = __rand_rd;
devrand->ops.read_page = __rand_rd_pg;