Skip to content

Commit feb44cf

Browse files
dhcp adjustments
1 parent 2a47c57 commit feb44cf

File tree

10 files changed

+385
-95
lines changed

10 files changed

+385
-95
lines changed

include/dhcp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,5 @@ void* get_dhcp_options(dhcp_packet_t* packet, uint8_t type);
127127
* @return packet size of constructed packet including options
128128
*/
129129
uint16_t make_dhcp_packet(dhcp_packet_t* packet, uint8_t msg_type, uint8_t* request_ip, uint32_t xid, uint32_t server_ip);
130+
131+
void dhcp_init(void);

include/keyboard.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,16 @@
2323
/**
2424
* @brief Delay before held keys begin to auto-repeat.
2525
*
26-
* Measured in scheduler ticks (centi-seconds, i.e. 1/100 s).
27-
* A value of 25 = 250 ms delay before repeat starts.
26+
* Measured in miliseconds
2827
*/
29-
#define REPEAT_DELAY_TICKS 25
28+
#define REPEAT_DELAY_TICKS 250
3029

3130
/**
3231
* @brief Interval between auto-repeats once a key is held down.
3332
*
34-
* Measured in scheduler ticks (centi-seconds, i.e. 1/100 s).
35-
* A value of 5 = 50 ms between repeats (~20 chars/sec).
33+
* Measured in milliseconds
3634
*/
37-
#define REPEAT_RATE_TICKS 5
35+
#define REPEAT_RATE_TICKS 50
3836

3937
/**
4038
* @brief Size of the circular keyboard buffer in bytes.

src/basic/sockets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ char* basic_udpread(struct basic_ctx* ctx) {
350350
lock_spinlock_irq(&udp_read_lock, &flags);
351351
queued_udp_packet* queue = udp_packets[port];
352352
if (queue) {
353-
dprintf("non empty queue");
354353
ctx->last_packet = *queue;
355354
if (queue == udp_list_tail[port]) {
356355
/* This packet is the tail packet */

src/idt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void init_idt() {
106106
cpu_serialise();
107107
remap_irqs_to_ioapic();
108108
cpu_serialise();
109-
init_lapic_timer(100);
109+
init_lapic_timer(1000);
110110
cpu_serialise();
111111
apic_setup_ap();
112112
#else

0 commit comments

Comments
 (0)