From cdf029471736f43776452930b7195a06ab143654 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 17 Apr 2021 22:59:57 +0200 Subject: Added I/O bus implementation for efficient IPC This was a nice coding session. See ya tomorrow! --- libs/libc/crypto.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libs/libc/crypto.c') diff --git a/libs/libc/crypto.c b/libs/libc/crypto.c index 310931d..c2d51ba 100644 --- a/libs/libc/crypto.c +++ b/libs/libc/crypto.c @@ -164,3 +164,16 @@ u32 crc32(u32 crc, const void *buf, u32 size) return crc ^ ~0UL; } + +#ifdef KERNEL + +#include +u32 crc32_user(u32 crc, const void *buf, u32 size) +{ + stac(); + u32 ret = crc32(crc, buf, size); + clac(); + return ret; +} + +#endif -- cgit v1.2.3