Commit graph

171 commits

Author SHA1 Message Date
Imbus
6e266e0905 Skip memcpy in badrand 2025-10-30 22:35:52 +01:00
Imbus
cb0ad6a2a5 Add linux-inspired rtc_class_ops struct 2025-10-01 03:40:11 +02:00
Imbus
5c243e3f81 Makefile: separate machine specific options, add link to gcc docs 2025-10-01 03:39:50 +02:00
Imbus
c36a22c5c8 Clang-format, align function pointers 2025-10-01 03:39:15 +02:00
Imbus
70f78dfa26 Better testing for random 2025-10-01 03:39:02 +02:00
Imbus
e8b2c1ae56 Rename rtc functions 2025-10-01 03:38:46 +02:00
Imbus
76037c1c18 badrand: a looks_random functions for a simple sanity check 2025-10-01 03:38:00 +02:00
Imbus
2a63fd9d1c Formatting 2025-10-01 03:37:44 +02:00
Imbus
cea6d7505f Include endian.h 2025-10-01 02:54:15 +02:00
Imbus
65d7cfe584 Test badrand in start.c 2025-10-01 02:53:40 +02:00
Imbus
2223a42488 Test rtc in main 2025-10-01 02:53:33 +02:00
Imbus
8d8ad077ce Include rtc... 2025-10-01 02:53:13 +02:00
Imbus
f6e543b64d Free the freelist allocation in start.c test, better logging messages 2025-10-01 02:53:03 +02:00
Imbus
cc24fb66eb Test hexdump in start.c 2025-10-01 02:52:20 +02:00
Imbus
795cf84a07 Fix format specifier that doesnt exist in neptune 2025-10-01 02:51:37 +02:00
Imbus
1ed4b57882 hexdump.[ch]: utility function for dumping memory regions as hex 2025-10-01 02:48:32 +02:00
Imbus
f4342ab221 ctype.h: include isprint 2025-10-01 02:48:03 +02:00
Imbus
802ac9c012 Seed badrand with an rtc read xored with itself (its called BADrand for a reason) 2025-10-01 02:42:45 +02:00
Imbus
0dbb13fea0 Extend badrand with badrand_buf 2025-10-01 02:41:09 +02:00
Imbus
6c3d50b6a5 Allow unused for now 2025-10-01 02:40:50 +02:00
Imbus
6a2c1f4ea9 Include rtc in build 2025-10-01 02:40:43 +02:00
Imbus
2fd62c52b4 Replace __sync compiler intrinsics with 'modern' __atomic 2025-10-01 02:40:30 +02:00
Imbus
9d6c9a8bc5 Initial RTC driver for google goldfish 2025-10-01 02:40:06 +02:00
Imbus
111d41d610 Buddy bugfix 2025-10-01 02:39:49 +02:00
Imbus
435b712f25 Freelist testing in start 2025-09-09 12:10:05 +02:00
Imbus
9df66792f2 Limits 2025-09-09 12:09:57 +02:00
Imbus
323522b03c Memcmp 2025-09-09 12:09:53 +02:00
Imbus
c72bce50ac max_align_t 2025-09-09 11:20:27 +02:00
Imbus
700828676b Some more stdint types and defines 2025-09-09 11:20:13 +02:00
Imbus
6b12606d82 Freelist that seems to behave 2025-09-09 11:11:28 +02:00
Imbus
6cb84f5081 stdalign 2025-09-08 09:24:50 +02:00
Imbus
ca0b25d110 Update freelist 2025-09-08 09:16:40 +02:00
Imbus
d583dbaced Initial implementation of a freelist. blocks contain a header 2025-09-08 05:03:40 +02:00
Imbus
f01b71f4a6 next_power_of_two bit hack function 2025-09-08 05:02:38 +02:00
Imbus
45ad16efb0 xv6-riscv license 2025-09-08 00:48:13 +02:00
Imbus
e9f2eef252 String: strncmp, strncpy 2025-09-08 00:45:41 +02:00
Imbus
8316c9f6ae Remove original kalloc free-list memory allocator entirely for now 2025-09-06 02:40:05 +02:00
Imbus
90c63ab41e Buddy allocator 2025-09-06 02:37:09 +02:00
Imbus
21d55031d9 memory.h: sweep algorithm for checking regions 2025-09-06 02:36:29 +02:00
Imbus
e762502c33 Include stdio in assert.h 2025-09-06 02:36:04 +02:00
Imbus
7301205e1f Add newline to panic macro 2025-09-06 02:09:48 +02:00
Imbus
57be90da84 kernel.ld: slight rewrite, use memory regions for ram instead of static offset 2025-09-06 00:54:38 +02:00
Imbus
6f5746a805 Checklist mark kassert done 2025-09-06 00:15:27 +02:00
Imbus
89197a0b07 assert.h: assert & assert_msg panic macros 2025-09-06 00:13:24 +02:00
Imbus
dac4f9de43 Repairing PANIC macro, now handles VA_ARGS properly 2025-09-06 00:12:58 +02:00
Imbus
bb38272597 Add monocypher to clang-format-ignore 2025-09-06 00:00:26 +02:00
Imbus
aff745ab63 clang-format-ignore: mini-printf 2025-09-06 00:00:15 +02:00
Imbus
f9b72df529 Some licenses to projects likely to be referenced in the future 2025-09-05 23:59:54 +02:00
Imbus
2eba11bb3f stdlib: abs, labs, llabs 2025-09-05 23:43:08 +02:00
Imbus
9bd5fdfa45 Include stdlib in string.h 2025-09-05 23:32:15 +02:00