From b59190783bd677264eab33017f6438d9de147e17 Mon Sep 17 00:00:00 2001 From: Jacob Potter Date: Sun, 9 Nov 2008 17:28:56 -0500 Subject: [PATCH] remove old stuff --- aseg-paging/paging.c | 109 -------------------------------- lwip/src/include/arch/.cc.h.swp | Bin 12288 -> 0 bytes 2 files changed, 109 deletions(-) delete mode 100644 aseg-paging/paging.c delete mode 100644 lwip/src/include/arch/.cc.h.swp diff --git a/aseg-paging/paging.c b/aseg-paging/paging.c deleted file mode 100644 index fd5d15d..0000000 --- a/aseg-paging/paging.c +++ /dev/null @@ -1,109 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include "../net/net.h" -#include "vga-overlay.h" - -#include "pagetable.h" - -unsigned int counter = 0; -unsigned int lastctr = 0; -unsigned long pcisave; -unsigned char vgasave; - -void set_cr0(unsigned int); - -#define get_cr0() \ - ({ \ - register unsigned int _temp__; \ - asm volatile("mov %%cr0, %0" : "=r" (_temp__)); \ - _temp__; \ - }) - - -#define set_cr3(value) \ - { \ - register unsigned int _temp__ = (value); \ - asm volatile("mov %0, %%cr3" : : "r" (_temp__)); \ - } -#define CR0_PG 0x80000000 - - -void smi_entry(void) -{ -/* - char statstr[512]; -*/ - - outb(0x80, 0xBB); - return; - - char * pagedir = pt_setup(0xA0000); - outb(0x80, 0x43); - set_cr3((int)pagedir); - outb(0x80, 0xA5); - - /* Turn paging on */ - set_cr0(get_cr0() | CR0_PG); - outb(0x80, 0xAA); - - pcisave = inl(0xCF8); - vgasave = inb(0x3D4); -/* - pci_unbother_all(); - */ - - counter++; - /* - sprintf(statstr, "15-412! %08x %08x", smi_status(), counter); - strblit(statstr, 0, 0); - */ - - /* - eth_poll(); - */ - - if (inl(0x840) & 0x1000) - { - /* - pci_dump(); - */ - outl(0x840, 0x1100); - outl(0x840, 0x0100); - } - -/* - smi_poll(); - - pci_bother_all(); - */ - outl(0xCF8, pcisave); - outb(0x3D4, vgasave); -} - -void timer_handler(smi_event_t ev) -{ - static unsigned int ticks = 0; - - smi_disable_event(SMI_EVENT_FAST_TIMER); - smi_enable_event(SMI_EVENT_FAST_TIMER); - - outb(0x80, (ticks++) & 0xFF); - - outlog(); -} - - -void __firstrun_start() { - smi_disable(); - outb(0x80, 0x41); - - smi_register_handler(SMI_EVENT_FAST_TIMER, timer_handler); - smi_enable_event(SMI_EVENT_FAST_TIMER); - - smi_enable(); -} - diff --git a/lwip/src/include/arch/.cc.h.swp b/lwip/src/include/arch/.cc.h.swp deleted file mode 100644 index 488f6a106984f80f77745c493bcba82bbab32c32..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2&2AD=7=}+xy3klPnz%leq|z=JXcINj8Yv8A>=XzL7USYL%nacuObK%)r5h7t zya-puE6|0myD;8>J59U<*Dm!vwB;v})GlkjlRQKC{+RD!2h&VHvbOo{REFVPVXW}^ zSF!NmVE($v*fZDLZR+?5C)|&t6H12Z7sG)@7^pp0d2OS!CwoTJ_Y4_&o!Acyw~wgj zrP}{8jcUjM891GR1-7=DNhcO>@M~A=r)#BZGC&5%02v?yWPl8i0Wv@a&b$HDn`6JR z#W}DD=8nJ%9Wp=$$N(8217v^bA(%YG&0*4wh%+^Hz3KXN?u!Xf$|B4!CN|h_4v4CKjD?$wmurtKG0Od$O*p9oI#( z>oy)cW^E^1;dnOuXqV$vN_E@jX_kc6?X5Pn4^9v&wDDaconVC2Ug~S5&gO zEm3o-^_-(~BLkE14Rg~f{WWvg$c1o~>dR)V0wI#gp6fji{N=IE$zcV{wDWr9!OS+M z_IrU|CYGUETNR3TgRbbQzEF2Zx#Lu%3#P)ETj+@Nbt-&EM{yYkN8{t^89F{35>F4& uaXlp-PJ!~nXXW|5t_)>IHdF2U6TwLNsMoQPI+3mBiXxX2#nJaQ5&8pJDh3b$ -- 2.43.0