* add p cc
[mascara-docs.git] / amd64 / bareMetalOS-0.5.3 / os / ipv4 / udp.asm
blob770eed2cba01d46d949284320f5b571c707b71d0
1 ; =============================================================================
2 ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
3 ; Copyright (C) 2008-2012 Return Infinity -- see LICENSE.TXT
5 ; UDP (User Datagram Protocol) over IPv4
6 ; =============================================================================
8 align 16
9 db 'DEBUG: IPv4 UDP '
10 align 16
13 ; os_ipv4_udp_sendto -- Writes data the remote host via UDP
14 ; os_ipv4_udp_recvfrom -- Reads data from the remote host via UDP
17 ; -----------------------------------------------------------------------------
18 ; os_udp_handler -- Handle an incoming UDP packet; Called by Network interrupt
19 ; IN: RCX = packet length
20 ; RSI = location of received UDP packet
21 os_udp_handler:
22 push rsi
23 push rax
27 pop rax
28 pop rsi
29 ret
30 ; -----------------------------------------------------------------------------
33 ; =============================================================================
34 ; EOF