Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kernel] Disable track caching for hard drives #1717

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions elks/arch/i86/drivers/block/bioshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,10 +722,12 @@ static void do_bioshd_request(void)

buf = req->rq_buffer;
while (count > 0) {
int num_sectors;
int num_sectors = 0;
#ifdef CONFIG_TRACK_CACHE
/* first try reading track cache*/
num_sectors = do_cache_read(drivep, start, buf, req->rq_seg, req->rq_cmd);
if (drivep - drive_info >= DRIVE_FD0) {
/* first try reading track cache*/
num_sectors = do_cache_read(drivep, start, buf, req->rq_seg, req->rq_cmd);
}
if (!num_sectors)
#endif
/* then fallback with retries if required*/
Expand Down
2 changes: 1 addition & 1 deletion elks/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static void INITPROC kernel_banner(seg_t start, seg_t end, seg_t init, seg_t ext
#endif

printk("syscaps %x, %uK base ram\n", sys_caps, SETUP_MEM_KBYTES);
printk("ELKS kernel %s (%u text, %u ftext, %u data, %u bss, %u heap)\n",
printk("ELKS %s (%u text, %u ftext, %u data, %u bss, %u heap)\n",
system_utsname.release,
(unsigned)_endtext, (unsigned)_endftext, (unsigned)_enddata,
(unsigned)_endbss - (unsigned)_enddata, heapsize);
Expand Down