elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elks
/
arch
/
i86
/
kernel
/
system-swan.c
File editor
#include <linuxmt/config.h> #include <linuxmt/types.h> #include <linuxmt/kernel.h> #include <linuxmt/wait.h> #include <linuxmt/sched.h> #include <linuxmt/fs.h> /* for ROOT_DEV */ #include <linuxmt/heap.h> #include <linuxmt/memory.h> #include <linuxmt/debug.h> #include <arch/segment.h> #include <arch/system.h> #include <arch/io.h> #include <arch/irq.h> #include <arch/swan.h> seg_t membase, memend; /* start and end segment of available main memory */ unsigned int heapsize; /* max size of kernel near heap */ byte_t sys_caps; /* system capabilities bits */ unsigned char arch_cpu; /* CPU type from cputype.S */ unsigned int INITPROC setup_arch(void) { unsigned int heapofs, heapsegs; /* * Set membase to beginning of available main memory. * Set memend to end of available main memory. * If ramdisk configured, subtract space for it from end of memory. * Set heapsize for near heap allocator. * Return start address for near heap allocator. */ heapsize = SETUP_HEAPSIZE; /* may also be set via heap= in /bootopts */ heapofs = (unsigned int) 0xFE00 - heapsize - (kernel_ds << 4); /* Start heap allocations at even addresses */ heapofs = (heapofs + 1) & ~1; membase = SETUP_USERHEAPSEG; debug("endbss %x heap %x\n", heapofs, heapsize); memend = SETUP_MEM_KBYTES << 6; arch_cpu = SETUP_CPU_TYPE; sys_caps = SYS_CAPS; /* custom system capabilities */ return heapofs; /* used as start address in near heap init */ } void INITPROC kernel_banner_arch(void) { if (inb(SYS_CONTROL_PORT) & SYS_CONTROL_IS_COLOR) { if (inb(0x62) & 0x80) printk("SwanCrystal, "); else printk("WonderSwan Color, "); } else printk("WonderSwan, "); }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history