Displaying 9 results from an estimated 9 matches for "jiffies_t".
2017 May 31
6
[PATCH 1/4] efi/udp: core_udp_connect should use SubnetMask not StationAddress for netmask
Signed-off-by: Julien Viard de Galbert <jviarddegalbert at online.net>
---
efi/udp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/efi/udp.c b/efi/udp.c
index 1088f47..b0f13ad 100644
--- a/efi/udp.c
+++ b/efi/udp.c
@@ -163,7 +163,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip,
} else {
udata.UseDefaultAddress = FALSE;
2016 Mar 02
0
"Tick-counting" vs "Tick-less" timekeeping issues on VMs emulating BIOS PCs
...ot really, a virtual environment can easily emulate the BIOS_timer at 0x046C
but it has problems emulating a "real" timer interrupt to be hooked...
That's the real problem.
Just testing I have replaced the timing functions
#define BIOS_timer 0x046C // Timer ticks
typedef uint32_t jiffies_t;
extern volatile jiffies_t __jiffies, __ms_timer;
static inline jiffies_t jiffies(void)
{
return (*(volatile uint32_t *)BIOS_timer);
}
typedef uint32_t mstime_t;
typedef int32_t mstimediff_t;
static inline mstime_t ms_timer(void)
{
return ((*(volatile uint32_t *)BIOS_timer) * 55);
}
lpxelinux....
2016 Mar 02
2
"Tick-counting" vs "Tick-less" timekeeping issues on VMs emulating BIOS PCs
On 03/01/16 21:11, H. Peter Anvin via Syslinux wrote:
> On 03/01/16 07:21, Patrick Masotta via Syslinux wrote:
>>
>> At the moment I'm seeing timing issues on TFTP transfers (lwIP depends
>> on the new interrupt based timer). I have consistently detected
>>
>> multiple Requests, double ACKs, etc. All these problems seem to be
>>
>> sourced on the
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...har rrq_packet_buf[2+2*FILENAME_MAX+sizeof rrq_tail];
char reply_packet_buf[PKTBUF_SIZE];
- const struct tftp_options *tftp_opt;
- int i = 0;
int err;
int buffersize;
int rrq_len;
@@ -219,7 +202,7 @@ void tftp_open(struct url_info *url, int flags, struct inode *inode,
jiffies_t oldtime;
uint16_t opcode;
uint16_t blk_num;
- uint32_t opdata, *opdata_ptr;
+ uint64_t opdata;
uint16_t src_port;
uint32_t src_ip;
@@ -381,22 +364,6 @@ wait_pkt:
if (!buffersize)
break; /* No option data */
- /*
- * Parse option pointed...
2015 Jul 09
2
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...url->ip, url->port);
/* If the WRITE call fails, we let the timeout take care of it... */
wait_pkt:
for (;;) {
buf_len = sizeof(reply_packet_buf);
err = core_udp_recv(socket, reply_packet_buf, &buf_len,
&src_ip, &src_port);
if (err) {
jiffies_t now = jiffies();
if (now - oldtime >= timeout)
goto sendreq;
} else {
/* Make sure the packet actually came from the server and
is long enough for a TFTP opcode */
dprintf("tftp_open: got packet buflen=%d\n", buf_len);
if ((src_ip...
2013 Mar 07
4
Syslinux-5.10-pre1
...quirky PXE
implementations.
---
Eric W. Biederman (51):
core: Makefile don't worry about how deep the files are
lwip: Import lwip version 1.3.2
lwip: Delete the ipv6 support and the tests.
lwip: Minimal configuration to get lwip building in syslinux
core: declare jiffies_t and mstime_t and use them.
core: thread: Add a global errno variable to support lwip
core thread: Rename timeouts pvt to better reflect it's use.
core: Move kaboom into it's own header.
lwip: Use kaboom.h
core: Move timer functions into timer.h
core thre...
2016 Feb 28
0
[PATCH 0/1] UEFI UDP/TFTP
...the invoking function as a wide string.
*
* @out: status as EFI_STATUS
*/
-
-EFI_STATUS core_udp_configure(EFI_UDP4 *udp, EFI_UDP4_CONFIG_DATA *udata,
- short unsigned int *f)
+EFI_STATUS efi_udp_configure(UDP_IO *udp_io, short unsigned int *f)
{
- EFI_STATUS status;
- int unmapped = 1;
- jiffies_t start, last, cur;
-
- last = start = jiffies();
- while (unmapped){
- status = uefi_call_wrapper(udp->Configure, 2, udp, udata);
- if (status != EFI_NO_MAPPING)
- unmapped = 0;
- else {
- cur = jiffies();
- if ( (cur - last) >= EFI_NOMAP_PRINT_DELAY ) {
- last = cur;
- Print(...
2015 Jul 08
4
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
from: Jeff Sloan <jeff_sloan at selinc.com>
Based on commit: 9314e330
Setting UseDefaultAddress to TRUE uses invalid StationAddress and
SubnetMask values. This is in a network with a local TFTP/MTFTP server. If
the server is local, on the same subnet, UseDefaultAddress is set to false
and the client ip and subnetmask are loaded, otherwise set
UseDefaultAddress to TRUE. This is added to
2016 Feb 24
6
[PATCH 2/5] ntfs: remove unused variable and have ntfssect use char API calls
The variable 'ok' is never used and generates a warning. Remove it. Also
ntfssect.c is designed to be compiled in non Unicode mode when using
MSVC compilers, so remove all ambiguity about it (LPCTSTR -> LPCSTR, use
of 'A' API calls) so that it doesn't break when compiled in Unicode
mode, which is what Rufus uses with MSVC.
-------------- next part --------------