diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 13:36:33 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 13:36:33 -0700 |
commit | 0cc9fff83bb9bbceb273815ca53105bc184e8a52 (patch) | |
tree | 6b2c50b8c9b6ff44c15c6835bc3f05d09cb70468 /memdump | |
parent | c0019a8215949ca0b9de18b6c772dc0e8ccb334d (diff) | |
download | syslinux-0cc9fff83bb9bbceb273815ca53105bc184e8a52.tar.gz |
memdump: remove debugging code never meant for release
Diffstat (limited to 'memdump')
-rw-r--r-- | memdump/main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/memdump/main.c b/memdump/main.c index c8fa39d9..a70e315a 100644 --- a/memdump/main.c +++ b/memdump/main.c @@ -77,12 +77,6 @@ static void get_bytes(void *buf, size_t len, struct file_info *finfo, } } -static uint32_t pci_readl(int bus, int devfn, int reg) -{ - outl(0x80000000 | (bus << 16) | (devfn << 8) | reg, 0xcf8); - return inl(0xcfc); -} - int main(int argc, char *argv[]) { uint16_t bios_ports[4]; @@ -97,12 +91,6 @@ int main(int argc, char *argv[]) struct file_info finfo; const char serial_banner[] = "Now being Ymodem download...\r\n"; - puts("Hello, world...\n"); - - printf("03:02.00 id = 0x%08x\n", pci_readl(3,2<<3,0)); - printf("03:02.00 cmd = 0x%08x\n", pci_readl(3,2<<3,4)); - printf("03:02.00 bar = 0x%08x\n", pci_readl(3,2<<3,0x10)); - if (argc < 4) die("usage: memdump port prefix start,len..."); |