9ab17484d0
Explicitly call erase(), to cope with platforms where the ANSI clear screen sequence doesn't work (like bios_console.c on some platforms).
Michael Brown2006-12-20 06:12:04 +00:00
f8910410fe
Add attr_{get,set,on,off} as static inlines.
Michael Brown2006-12-20 06:06:38 +00:00
4f506328ad
Use -ENOSPC rather than -ENOMEM, to distinguish the cases "generic out of memory" and "no space left for DHCP options"
Michael Brown2006-12-20 03:33:37 +00:00
637a891264
Fix prototype of sleep() and move it to unistd.h
Michael Brown2006-12-20 03:14:59 +00:00
1e322d4b4c
Add (partly-functional) user interface for editing configuration settings
Michael Brown2006-12-20 03:04:07 +00:00
3e0f7621eb
Don't automatically redraw the edit box; this allows better inheritance.
Michael Brown2006-12-20 02:09:41 +00:00
35dcbfe771
Editable text box widget based on mucurses and edit_string.
Michael Brown2006-12-20 01:40:57 +00:00
4919646fb9
Separated out (and tidied up) shell banner code
Michael Brown2006-12-20 00:24:13 +00:00
a2c5744daf
Minimal shell implementation using readline() and system().
Michael Brown2006-12-19 23:55:05 +00:00
a646e38f03
Use stdlib.h for malloc() instead of malloc.h.
Michael Brown2006-12-19 23:42:46 +00:00
b613086bfe
Explicitly print out-of-memory message to avoid tricking the user into thinking that a command executed successfully.
Michael Brown2006-12-19 23:37:51 +00:00
cdfe61662b
Assume a 24-line screen, since we can't (easily) avoid scrolling after printing in the bottom-right position.
Michael Brown2006-12-19 01:16:43 +00:00
0aa1223264
Optimise bios_putchar for speed(!) by avoiding two separate real-mode calls. This does make a visible difference when clearing the screen with werase() inside bochs or qemu.
Michael Brown2006-12-19 01:15:05 +00:00
e85bf52446
Avoid cursor move on every single character
Michael Brown2006-12-19 00:51:32 +00:00
426e847c4c
Rename core.c->mucurses.c; bin/core.o is too generic to belong to mucurses.
Michael Brown2006-12-18 16:50:02 +00:00
688eb60df4
Use int rather than short for bool; it will give more efficient code.
Michael Brown2006-12-18 16:48:09 +00:00
2ed2b2efe8
Use iskey() and getchar() to interact with console, rather than object abstraction.
Michael Brown2006-12-18 16:46:25 +00:00
a497e16767
The "increment MAC address by port number" hack applies only to EF1.
Michael Brown2006-12-18 15:28:34 +00:00
530bbf7cca
Print welcome banner in bold (which will come out as bright white text on the BIOS console, or genuine bold font on a xterm "serial" console), just to prove the concept of the ANSI escape sequence handling.
Michael Brown2006-12-18 01:31:33 +00:00
8b3a4c9862
Add basic ANSI escape sequence support to BIOS console
Michael Brown2006-12-18 01:19:38 +00:00
1cd45decc4
Added support for interpreting ANSI escape sequences on behalf of non-ANSI-capable consoles.
Michael Brown2006-12-18 00:01:30 +00:00
8a45f619a9
Fix building on gas versions that don't auto-insert addr32 prefixes
Michael Brown2006-12-12 19:07:18 +00:00
a39b111684
Automatically select between the "10" and "16" variants of command set, based on the device size.
Michael Brown2006-12-12 18:54:35 +00:00
3bd7e479a2
Catch SCSI errors, and work around the start-of-day CHECK CONDITION that some targets send.
Michael Brown2006-12-12 18:18:54 +00:00
9aa3e10d7c
Use root-path option (as per RFC 4173) rather than filename option to determine iSCSI boot parameters.
Michael Brown2006-12-08 15:53:49 +00:00
cc697eeb1f
Added "exit" back in as a standardised command.
Michael Brown2006-12-08 01:40:06 +00:00
7de5d32ff5
cmdlinelib.c now calls system() rather than doing its own tokenisation (which was extremely heavy on calls to malloc()).
Michael Brown2006-12-08 01:26:11 +00:00
be0cd1cddd
Added a functional version of getopt() and getopt_long(), ready for use in our commands.
Michael Brown2006-12-07 03:54:57 +00:00
29db66fb51
Add support for non-volatile stored options in the RTL8139 EEPROM.
Michael Brown2006-12-06 20:45:44 +00:00
2863d1a1de
inet_aton() has a non-traditional return value
Michael Brown2006-12-06 20:44:29 +00:00
38ae94f8ce
A cleaner method of handling login redirection; just use the existing reconnection mechanism. This avoids the problems of trying to reuse the TCP connection structure before the old connection has cleanly exited.
Michael Brown2006-12-06 19:53:56 +00:00
d2bf7abe75
Added write support for three-wire devices (e.g. the RTL8139 EEPROM)
Michael Brown2006-12-06 19:51:58 +00:00
cc0b92652f
Call closed() method only when the connection is genuinely in the TCP_CLOSED state (i.e. after the final FIN/ACK exchange), and has been removed from the list of TCP connections.
Michael Brown2006-12-05 22:53:28 +00:00
fcc70c9d60
Ensure that tcp_rx() always frees its received packet buffer.
Michael Brown2006-12-05 21:23:23 +00:00
89bcb57201
Update ftp.c to work with Nikhil's TCP stack.
Michael Brown2006-12-05 19:07:47 +00:00
a128b33b8b
The VPD engine is broken and can't actually handle placing VPD anywhere other than offset 0 within the EEPROM, so we have to put our settings at 0x100 instead.
Michael Brown2006-12-05 17:56:13 +00:00
4c3e0fede5
Adjust EEPROM/flash detection to fit expected manufacturing practice.
Michael Brown2006-12-05 16:00:06 +00:00