source: mainline/.gitignore@ 98c4c16

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 98c4c16 was 5a5269d, checked in by GitHub <noreply@…>, 6 years ago

Change type of uspace pointers in kernel from pointer type to numeric (#170)

From kernel's perspective, userspace addresses are not valid pointers,
and can only be used in calls to copy_to/from_uspace().
Therefore, we change the type of those arguments and variables to
uspace_addr_t which is an alias for sysarg_t.

This allows the compiler to catch accidental direct accesses to
userspace addresses.

Additionally, to avoid losing the type information in code,
a macro uspace_ptr(type) is used that translates to uspace_addr_t.
I makes no functional difference, but allows keeping the type information
in code in case we implement some sort of static checking for it in the future.

However, ccheck doesn't like that, so instead of using uspace_ptr(char),
we use uspace_ptr_char which is defined as
#define uspace_ptr_char uspace_ptr(char).

  • Property mode set to 100644
File size: 10.0 KB
RevLine 
[56763a4]1*.a
[db9c889]2*.check.c
3*.d
4*.deflate
5*.disasm
[bd1745f]6*.la
7*.lo
[50971113]8*.map
[db9c889]9*.o
[50971113]10*.prev
[56763a4]11*.pyc
[db9c889]12*.so.*
[6ba2db4b]13/Makefile.common
[db9c889]14/Makefile.config
[a5c468e]15/PKG
[6ba2db4b]16/common.h
17/config.h
18/cscope.out
[a5c468e]19/downloads
[6ba2db4b]20/hdisk.img
[db9c889]21/image.boot
[6ba2db4b]22/image.iso
[7bf8253]23/uImage.bin
[db9c889]24autotool/
[7bf8253]25boot/arch/arm32/_link.ld
[84176f3]26boot/arch/arm64/_link.ld
[7bf8253]27boot/arch/ia64/_link.ld
28boot/arch/mips32/_link.ld
29boot/arch/ppc32/_link.ld
30boot/arch/sparc64/_link.ld
31boot/components.h
[a5c468e]32boot/components.o.new
[7bf8253]33boot/components.s
[a5c468e]34boot/components.tar
[7bf8253]35boot/components.zip
36boot/components_desc.c
[db9c889]37boot/distroot/
[7bf8253]38boot/image.bin
39boot/image.boot
40boot/image.raw
[db9c889]41boot/initrd.img
[a5c468e]42boot/initrd.img.gz
[db9c889]43common.h.new
44deps.mk
45doxygen/doxygen.cfg
46doxygen/doxygen.cfg.gen
47doxygen/html/
48doxygen/latex/
49kernel/arch/abs32le/_link.ld
[50971113]50kernel/arch/amd64/_link.ld
[bd1745f]51kernel/arch/arm32/_link.ld
[84176f3]52kernel/arch/arm64/_link.ld
[bd1745f]53kernel/arch/ia32/_link.ld
[7bf8253]54kernel/arch/ia64/_link.ld
55kernel/arch/mips32/_link.ld
56kernel/arch/ppc32/_link.ld
57kernel/arch/sparc64/_link.ld
[50971113]58kernel/generic/src/debug/real_map.bin
[bd1745f]59kernel/kernel.bin
[a5c468e]60kernel/kernel.bin.gz
[bd1745f]61kernel/kernel.dump
[a5c468e]62kernel/kernel.elf
63kernel/kernel.elf.gz
[bd1745f]64kernel/kernel.raw
[db9c889]65tag
66tags
67tools/amd64-unknown-elf
68tools/arm-linux-gnueabi
69tools/binutils-*.tar.bz2
70tools/downloads/
71tools/gcc-*.tar.bz2
72tools/gdb-*.tar.gz
73tools/i686-pc-linux-gnu
74tools/ia64-pc-linux-gnu
75tools/mips-linux-gnu
76tools/mips64el-linux-gnu
77tools/mipsel-linux-gnu
78tools/ppc-linux-gnu
79tools/ppc64-linux-gnu
80tools/riscv64-unknown-linux-gnu
81tools/sparc64-linux-gnu
82tools/sycek/
[a5c468e]83tools/xcw/demo/viewer
[ac235711]84uspace/app/barber/barber
85uspace/app/barber/images.c
86uspace/app/barber/images.h
[bd1745f]87uspace/app/barber/images.s
[3cd27c1]88uspace/app/barber/images.zip
89uspace/app/barber/images_desc.c
[50971113]90uspace/app/bdsh/bdsh
[6019983]91uspace/app/bdsh/test-bdsh
[50971113]92uspace/app/bithenge/bithenge
93uspace/app/blkdump/blkdump
[b79903b]94uspace/app/contacts/contacts
[bd1745f]95uspace/app/corecfg/corecfg
[edbad13a]96uspace/app/cpptest/cpptest
[50971113]97uspace/app/date/date
98uspace/app/devctl/devctl
[bd1745f]99uspace/app/df/df
[9182e86f]100uspace/app/dltest/dltest
[7c4b26c]101uspace/app/dltests/dltests
[50971113]102uspace/app/dnscfg/dnscfg
103uspace/app/dnsres/dnsres
[bd1745f]104uspace/app/download/download
[50971113]105uspace/app/edit/edit
[8227d63]106uspace/app/fdisk/fdisk
[a9763c6]107uspace/app/fontviewer/fontviewer
[50971113]108uspace/app/getterm/getterm
[868b0e9]109uspace/app/gunzip/gunzip
[fe656783]110uspace/app/hbench/hbench
[50971113]111uspace/app/inet/inet
112uspace/app/init/init
[a5c468e]113uspace/app/init/init.gz
[10b21a1b]114uspace/app/lprint/lprint
[50971113]115uspace/app/kill/kill
116uspace/app/killall/killall
[6fa9a99d]117uspace/app/kio/kio
[50971113]118uspace/app/loc/loc
119uspace/app/logset/logset
120uspace/app/mixerctl/mixerctl
121uspace/app/mkbd/mkbd
122uspace/app/mkexfat/mkexfat
[aab85d90]123uspace/app/mkext4/mkext4
[50971113]124uspace/app/mkfat/mkfat
125uspace/app/mkmfs/mkmfs
[ac235711]126uspace/app/modplay/modplay
[50971113]127uspace/app/netecho/netecho
[bd1745f]128uspace/app/netspeed/netspeed
[50971113]129uspace/app/nettest1/nettest1
130uspace/app/nettest2/nettest2
131uspace/app/nettest3/nettest3
[6bcecc2]132uspace/app/nic/nic
[50971113]133uspace/app/nterm/nterm
[7acd787]134uspace/app/pci/pci
[50971113]135uspace/app/ping/ping
136uspace/app/ping6/ping6
[868b0e9]137uspace/app/pkg/pkg
[50971113]138uspace/app/redir/redir
139uspace/app/sbi/sbi
140uspace/app/sportdmp/sportdmp
141uspace/app/stats/stats
142uspace/app/sysinfo/sysinfo
[3a34852]143uspace/app/sysinst/sysinst
[50971113]144uspace/app/taskdump/taskdump
145uspace/app/tester/tester
146uspace/app/testread/testread
[a5c468e]147uspace/app/testrunner/testrunner
[50971113]148uspace/app/testwrit/testwrit
149uspace/app/tetris/tetris
[81ee1009]150uspace/app/tmon/tmon
[50971113]151uspace/app/top/top
152uspace/app/trace/trace
[bd1745f]153uspace/app/untar/untar
[50971113]154uspace/app/usbinfo/usbinfo
[f297fa6]155uspace/app/vcalc/vcalc
[50971113]156uspace/app/vdemo/vdemo
[bd1745f]157uspace/app/viewer/viewer
[50971113]158uspace/app/vlaunch/images.c
159uspace/app/vlaunch/images.h
[3cd27c1]160uspace/app/vlaunch/images.s
161uspace/app/vlaunch/images.zip
162uspace/app/vlaunch/images_desc.c
[50971113]163uspace/app/vlaunch/vlaunch
[db9c889]164uspace/app/vol/vol
[50971113]165uspace/app/vterm/vterm
166uspace/app/vuhid/vuh
[a5c468e]167uspace/app/vuhid/vuhid
[50971113]168uspace/app/wavplay/wavplay
169uspace/app/websrv/websrv
[94fad353]170uspace/app/wifi_supplicant/wifi_supplicant
[db9c889]171uspace/dist/app/
[ac235711]172uspace/dist/app/barber
[50971113]173uspace/dist/app/bdsh
174uspace/dist/app/bithenge
175uspace/dist/app/blkdump
[bd1745f]176uspace/dist/app/corecfg
[edbad13a]177uspace/dist/app/cpptest
[50971113]178uspace/dist/app/date
179uspace/dist/app/devctl
[bd1745f]180uspace/dist/app/df
[9182e86f]181uspace/dist/app/dltest
[7c4b26c]182uspace/dist/app/dltests
[50971113]183uspace/dist/app/dnscfg
184uspace/dist/app/dnsres
[bd1745f]185uspace/dist/app/download
[50971113]186uspace/dist/app/edit
[8227d63]187uspace/dist/app/fdisk
[a9763c6]188uspace/dist/app/fontviewer
[50971113]189uspace/dist/app/getterm
[868b0e9]190uspace/dist/app/gunzip
[50971113]191uspace/dist/app/inet
192uspace/dist/app/kill
193uspace/dist/app/killall
[6fa9a99d]194uspace/dist/app/kio
[50971113]195uspace/dist/app/loc
196uspace/dist/app/logset
197uspace/dist/app/mixerctl
198uspace/dist/app/mkbd
199uspace/dist/app/mkexfat
200uspace/dist/app/mkfat
201uspace/dist/app/mkmfs
[ac235711]202uspace/dist/app/modplay
[50971113]203uspace/dist/app/netecho
[bd1745f]204uspace/dist/app/netspeed
[50971113]205uspace/dist/app/nettest1
206uspace/dist/app/nettest2
207uspace/dist/app/nettest3
[6bcecc2]208uspace/dist/app/nic
[50971113]209uspace/dist/app/nterm
210uspace/dist/app/ping
211uspace/dist/app/ping6
[868b0e9]212uspace/dist/app/pkg
[50971113]213uspace/dist/app/redir
214uspace/dist/app/sbi
215uspace/dist/app/sportdmp
216uspace/dist/app/stats
217uspace/dist/app/sysinfo
[3a34852]218uspace/dist/app/sysinst
[50971113]219uspace/dist/app/taskdump
220uspace/dist/app/tester
221uspace/dist/app/testread
222uspace/dist/app/testwrit
223uspace/dist/app/tetris
[81ee1009]224uspace/dist/app/tmon
[50971113]225uspace/dist/app/top
226uspace/dist/app/trace
[bd1745f]227uspace/dist/app/untar
[50971113]228uspace/dist/app/usbinfo
[f297fa6]229uspace/dist/app/vcalc
[50971113]230uspace/dist/app/vdemo
[bd1745f]231uspace/dist/app/viewer
[50971113]232uspace/dist/app/vlaunch
233uspace/dist/app/vterm
234uspace/dist/app/vuh
235uspace/dist/app/wavplay
236uspace/dist/app/websrv
[94fad353]237uspace/dist/app/wifi_supplicant
[bd1745f]238uspace/dist/demo.txt
239uspace/dist/demo.wav
240uspace/dist/demo.xm
[db9c889]241uspace/dist/drv/
[50971113]242uspace/dist/drv/ahci/
[b446b02]243uspace/dist/drv/apic/
[94fad353]244uspace/dist/drv/ar9271/
[50971113]245uspace/dist/drv/ata_bd/
[bd1745f]246uspace/dist/drv/atkbd/
[50971113]247uspace/dist/drv/cmos-rtc/
248uspace/dist/drv/e1k/
249uspace/dist/drv/ehci/
[b229062]250uspace/dist/drv/hdaudio/
[50971113]251uspace/dist/drv/i8042/
[b446b02]252uspace/dist/drv/i8259/
[a416d070]253uspace/dist/drv/icp-ic/
[db9c889]254uspace/dist/drv/icp/
[50971113]255uspace/dist/drv/isa/
256uspace/dist/drv/kfb/
[d420b22]257uspace/dist/drv/msim-con/
[50971113]258uspace/dist/drv/ne2k/
259uspace/dist/drv/ns8250/
260uspace/dist/drv/ohci/
[ac235711]261uspace/dist/drv/pc/
[50971113]262uspace/dist/drv/pciintel/
[a416d070]263uspace/dist/drv/pl050/
[50971113]264uspace/dist/drv/ps2mouse/
265uspace/dist/drv/root/
266uspace/dist/drv/rootpc/
267uspace/dist/drv/rtl8139/
[238869ca]268uspace/dist/drv/rtl8169/
[50971113]269uspace/dist/drv/sb16/
[d420b22]270uspace/dist/drv/ski-con/
271uspace/dist/drv/sun4v-con/
[50971113]272uspace/dist/drv/test1/
273uspace/dist/drv/test2/
274uspace/dist/drv/test3/
275uspace/dist/drv/uhci/
[b7e1458]276uspace/dist/drv/usbdiag/
[50971113]277uspace/dist/drv/usbflbk/
278uspace/dist/drv/usbhid/
279uspace/dist/drv/usbhub/
280uspace/dist/drv/usbmast/
281uspace/dist/drv/usbmid/
282uspace/dist/drv/vhc/
[bd1745f]283uspace/dist/drv/virt/
[c362127]284uspace/dist/drv/xhci/
[db9c889]285uspace/dist/drv/xtkbd/
286uspace/dist/inc/
[bd1745f]287uspace/dist/inc/_link.ld
288uspace/dist/inc/c/
289uspace/dist/logo.tga
[7bf8253]290uspace/dist/srv/
291uspace/dist/test/
[b229062]292uspace/drv/audio/hdaudio/hdaudio
[50971113]293uspace/drv/audio/sb16/sb16
294uspace/drv/block/ahci/ahci
295uspace/drv/block/ata_bd/ata_bd
[94fad353]296uspace/drv/block/ddisk/ddisk
[53b9f2c]297uspace/drv/block/usbmast/usbmast
[a416d070]298uspace/drv/bus/adb/cuda_adb/cuda_adb
[50971113]299uspace/drv/bus/isa/isa
300uspace/drv/bus/pci/pciintel/pciintel
301uspace/drv/bus/usb/ehci/ehci
302uspace/drv/bus/usb/ohci/ohci
303uspace/drv/bus/usb/uhci/uhci
[b7e1458]304uspace/drv/bus/usb/usbdiag/usbdiag
[50971113]305uspace/drv/bus/usb/usbflbk/usbflbk
306uspace/drv/bus/usb/usbhub/usbhub
307uspace/drv/bus/usb/usbmid/usbmid
308uspace/drv/bus/usb/vhc/vhc
[afa347e]309uspace/drv/bus/usb/xhci/test-xhci
[db9c889]310uspace/drv/bus/usb/xhci/xhci
[50971113]311uspace/drv/char/i8042/i8042
[56763a4]312uspace/drv/char/msim-con/msim-con
[50971113]313uspace/drv/char/ns8250/ns8250
[10b21a1b]314uspace/drv/char/pc-lpt/pc-lpt
[7348c4b]315uspace/drv/char/pl011/pl011
[bd1745f]316uspace/drv/char/pl050/pl050
[50971113]317uspace/drv/char/ps2mouse/ps2mouse
[d420b22]318uspace/drv/char/ski-con/ski-con
319uspace/drv/char/sun4v-con/sun4v-con
[bd1745f]320uspace/drv/fb/amdm37x_dispc/amdm37x_dispc
[50971113]321uspace/drv/fb/kfb/kfb
[a2afd8f]322uspace/drv/hid/adb-kbd/adb-kbd
323uspace/drv/hid/adb-mouse/adb-mouse
[d420b22]324uspace/drv/hid/atkbd/atkbd
325uspace/drv/hid/ps2mouse/ps2mouse
[53b9f2c]326uspace/drv/hid/usbhid/usbhid
[db9c889]327uspace/drv/hid/xtkbd/xtkbd
[b446b02]328uspace/drv/intctl/apic/apic
[8df0306]329uspace/drv/intctl/gicv2/gicv2
[b446b02]330uspace/drv/intctl/i8259/i8259
[a416d070]331uspace/drv/intctl/icp-ic/icp-ic
[d420b22]332uspace/drv/intctl/obio/obio
[94fad353]333uspace/drv/nic/ar9271/ar9271
[50971113]334uspace/drv/nic/e1k/e1k
335uspace/drv/nic/ne2k/ne2k
336uspace/drv/nic/rtl8139/rtl8139
[238869ca]337uspace/drv/nic/rtl8169/rtl8169
[db9c889]338uspace/drv/nic/virtio-net/virtio-net
[bd1745f]339uspace/drv/platform/amdm37x/amdm37x
[69b6dd1f]340uspace/drv/platform/arm64virt/arm64virt
[bd1745f]341uspace/drv/platform/icp/icp
342uspace/drv/platform/mac/mac
343uspace/drv/platform/malta/malta
344uspace/drv/platform/msim/msim
345uspace/drv/platform/pc/pc
346uspace/drv/platform/rootpc/rootpc
[d420b22]347uspace/drv/platform/ski/ski
348uspace/drv/platform/sun4v/sun4v
[bd1745f]349uspace/drv/root/root/root
350uspace/drv/root/virt/virt
[50971113]351uspace/drv/test/test1/test1
352uspace/drv/test/test2/test2
353uspace/drv/test/test3/test3
354uspace/drv/time/cmos-rtc/cmos-rtc
[a5c468e]355uspace/export
[6019983]356uspace/lib/c/test-libc
[3cd27c1]357uspace/lib/label/test-liblabel
[bbe5e34]358uspace/lib/math/test-libmath
[6019983]359uspace/lib/pcut/test-libpcut-*
[a5c468e]360uspace/lib/posix/gcc.specs
361uspace/lib/posix/link.ld
[6019983]362uspace/lib/posix/test-libposix
[b79903b]363uspace/lib/sif/test-libsif
[da4e695]364uspace/lib/uri/test-liburi
[50971113]365uspace/srv/audio/hound/hound
366uspace/srv/bd/file_bd/file_bd
367uspace/srv/bd/rd/rd
[a5c468e]368uspace/srv/bd/rd/rd.gz
[50971113]369uspace/srv/bd/sata_bd/sata_bd
[1356f85a]370uspace/srv/bd/vbd/vbd
[50971113]371uspace/srv/clipboard/clipboard
372uspace/srv/devman/devman
373uspace/srv/fs/cdfs/cdfs
374uspace/srv/fs/exfat/exfat
375uspace/srv/fs/ext4fs/ext4fs
[a5c468e]376uspace/srv/fs/ext4fs/ext4fs.gz
[50971113]377uspace/srv/fs/fat/fat
[a5c468e]378uspace/srv/fs/fat/fat.gz
[50971113]379uspace/srv/fs/locfs/locfs
380uspace/srv/fs/mfs/mfs
381uspace/srv/fs/tmpfs/tmpfs
382uspace/srv/fs/udf/udf
383uspace/srv/hid/compositor/compositor
384uspace/srv/hid/compositor/images.c
385uspace/srv/hid/compositor/images.h
386uspace/srv/hid/console/console
387uspace/srv/hid/input/input
388uspace/srv/hid/isdv4_tablet/isdv4_tablet
389uspace/srv/hid/output/output
390uspace/srv/hid/remcons/remcons
[bd1745f]391uspace/srv/hid/rfb/rfb
[50971113]392uspace/srv/hid/s3c24xx_ts/s3c24xx_ts
[bd1745f]393uspace/srv/hw/bus/cuda_adb/cuda_adb
[50971113]394uspace/srv/hw/char/s3c24xx_uart/s3c24ser
[a5c468e]395uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart
[bd1745f]396uspace/srv/hw/irc/obio/obio
397uspace/srv/klog/klog
[50971113]398uspace/srv/loader/loader
[a5c468e]399uspace/srv/loader/loader.gz
[50971113]400uspace/srv/locsrv/locsrv
[a5c468e]401uspace/srv/locsrv/locsrv.gz
[50971113]402uspace/srv/logger/logger
[a5c468e]403uspace/srv/logger/logger.gz
[bd1745f]404uspace/srv/net/dhcp/dhcp
[50971113]405uspace/srv/net/dnsrsrv/dnsrsrv
406uspace/srv/net/ethip/ethip
407uspace/srv/net/inetsrv/inetsrv
408uspace/srv/net/loopip/loopip
[bd1745f]409uspace/srv/net/nconfsrv/nconfsrv
[50971113]410uspace/srv/net/slip/slip
411uspace/srv/net/tcp/tcp
[868b0e9]412uspace/srv/net/tcp/test-tcp
[50971113]413uspace/srv/net/udp/udp
414uspace/srv/ns/ns
[a5c468e]415uspace/srv/ns/ns.gz
[50971113]416uspace/srv/taskmon/taskmon
[74017ce]417uspace/srv/test/chardev-test/chardev-test
[1edd6d0]418uspace/srv/test/ipc-test/ipc-test
[50971113]419uspace/srv/vfs/vfs
[a5c468e]420uspace/srv/vfs/vfs.gz
[64ffd83]421uspace/srv/volsrv/test-volsrv
[bd1745f]422uspace/srv/volsrv/volsrv
[5a5269d]423uspace/drv/block/virtio-blk/virtio-blk
Note: See TracBrowser for help on using the repository browser.